Re: [R] R functions to forecast using neural network

2012-07-25 Thread arun
Cc: "r-help@r-project.org" Sent: Wednesday, July 25, 2012 2:01 PM Subject: Re: [R] R functions to forecast using neural network Hi, It's only for single hidden layer. Is there any other functions? Sajeeka Nanayakkara From: arun To: Sajeeka

Re: [R] R functions to forecast using neural network

2012-07-25 Thread Bert Gunter
gt; > > Sajeeka Nanayakkara > > > > > > > Cc: R help > Sent: Wednesday, July 25, 2012 1:03 AM > Subject: Re: [R] R functions to forecast using neural network > > Hi, > > Possibly ?nnet package. > A.K. > > > > >

Re: [R] R functions to forecast using neural network

2012-07-25 Thread Sajeeka Nanayakkara
Hi, It's only for single hidden layer. Is there any other functions?   Sajeeka Nanayakkara Cc: R help Sent: Wednesday, July 25, 2012 1:03 AM Subject: Re: [R] R functions to forecast using neural network Hi, Possibly ?nnet package. A.K. - Ori

Re: [R] R functions to forecast using neural network

2012-07-24 Thread arun
Hi, Possibly ?nnet package. A.K. - Original Message - From: Sajeeka Nanayakkara To: "r-help@r-project.org" Cc: Sent: Tuesday, July 24, 2012 2:21 PM Subject: [R] R functions to forecast using neural network Is there any R functions to forecast, using feedforward bakp

[R] R functions to forecast using neural network

2012-07-24 Thread Sajeeka Nanayakkara
Is there any R functions to forecast, using feedforward bakpropagation algorithm in neural networks?   Sajeeka Nanayakkara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PL

Re: [R] R functions

2011-09-23 Thread sujitha
Hi group, code: >m<-read.table("test.txt",sep='\t',header=TRUE,colClasses=c('character','integer','integer','numeric','numeric')) > >s<-data.frame(c(rle(m$Sample1)[[2]],rle(m$Sample2)[[2]]),c(rle(m$Sample1)[[1]],rle(m$Sample2)[[1]])) > > names(s)=c("Values","Probes") >G=1 > for(i in 1:length(s$P

Re: [R] R functions

2011-09-16 Thread sujitha
Hi, Thanks for your reply. I converted using your idea and since I have big file I thought reading as a table would help. This is just snippet of my data. I have around 150 samples so wrting s in that form would be tedious. >m<-read.table("test.txt",sep='\t',header=TRUE,colClasses=c('character','in

Re: [R] R functions

2011-09-15 Thread B77S
Suji, # Here is your data ("test"). test <- structure(list(Chr = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = "chr2", class = "factor"), start = c(9896633L, 9896639L, 14314039L, 14404467L, 14421718L, 16031710L, 16036178L, 16048665L, 37491676L, 37702947L), end = c(9896683L, 989

Re: [R] R functions

2011-09-15 Thread B77S
If your data is named 'test_file' then use dput(test_file) You can copy and paste the results here so people can more easily try and help you. see ?dput sujitha wrote: > > Hi group, > I am trying to right a code to do the following > This is how the test file looks like: > Chr start end sa

Re: [R] R functions

2011-09-15 Thread B77S
You'll never figure it out if you don't "play around" with your data. Assuming you have been able to import the data, a good place to start is to look at what tools you have available.Check out this: http://cran.r-project.org/doc/contrib/Short-refcard.pdf check out things like ?which ?max ?

[R] R functions

2011-09-15 Thread sujitha
Hi group, I am trying to right a code to do the following This is how the test file looks like: Chr start end sample1 sample2 chr2 9896633 9896683 0 0 chr2 9896639 9896690 0 0 chr2 14314039 14314098 0 -0.35 chr2 14404467 14404502 0 -0.35 chr2 14421718 14421777 -0.43 -0.35 chr2 16031710 16031769 -0.

Re: [R] R functions in Java

2010-10-14 Thread lord12
For example, if I have the function in R: sum = function(a,b) { sum = a+b return sum } In Java: re.eval(sum(a,b)) gives me an error. -- View this message in context: http://r.789695.n4.nabble.com/R-functions-in-Java-tp2995428p2995620.html Sent from the R help mailing list archive at Nab

Re: [R] R functions in Java

2010-10-14 Thread lord12
Any advice? -- View this message in context: http://r.789695.n4.nabble.com/R-functions-in-Java-tp2995428p2995490.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] R functions in Java

2010-10-14 Thread lord12
Suppose I have a function in R called foo. foo = function(x) { print(x); } When I create the Rengine re and do re.eval("foo(1)") I get the output 1. However, if I create a string variable in java String num = 1 and do re.eval("foo(num)"), I get an error saying that num cannot be found. How c

Re: [R] R functions with array arguments

2009-09-17 Thread Maurizio Paolillo
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] R functions with array arguments

2009-09-17 Thread baptiste auguie
Try this, sapply(Mabslim , my_gamma, alpha=-1, xstar = -21, xmax = -27) or wrap it with ?Vectorize, vmy_gamma = Vectorize(my_gamma, vectorize.args = "xlim") vmy_gamma(alpha=-1, xstar = -21, xlim= Mabslim, xmax = -27) HTH, baptiste 2009/9/17 Maurizio Paolillo : > Dear R users, > I'm trying t

[R] R functions with array arguments

2009-09-17 Thread Maurizio Paolillo
Dear R users, I'm trying to implement a self-defined function with multiple arguments, one of which is an array, but I find that the result is a single value instead of an array. This is the example I'm working on: # define integration limit vector > Mabslim <- c(-17.95, -16.65, -17.27, -17.

Re: [R] R functions that count lines of a files

2009-09-01 Thread Ben Bolker
length(count.fields("foo.txt")) ? xue dong wrote: > > hi, everyone, > > do you know if there is a R function that can count the lines of a file > without open it? > > something like "wc -l " in Unix. > > Thanks, > > Xue > > [[alternative HTML version deleted]] > > _

[R] R functions that count lines of a files

2009-09-01 Thread xue dong
hi, everyone, do you know if there is a R function that can count the lines of a file without open it? something like "wc -l " in Unix. Thanks, Xue [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.c