[R] doubt with auto.arima

2010-05-19 Thread yonosoyelmejor
hello, i have a doubt with this function, i need get the returns values because i have to save in a variables,something like this: Invernadero-ts(x2) test-auto.arima(x2) x2.pred.ar31-predict(arima(x2,order=c(p,d,q)),n.ahead=10)$pred can i get p,d and q from auto.arima?this is my

[R] doubt with auto.arima

2010-05-18 Thread yonosoyelmejor
hello, i have a doubt with this function, i need get the returns values because i have to save in a variables,something like this: Invernadero-ts(x2) test-auto.arima(x2) x2.pred.ar31-predict(arima(x2,order=c(p,d,q)),n.ahead=10)$pred can i get p,d and q from auto.arima?this is my question.

[R] Arguments

2009-11-27 Thread yonosoyelmejor
hello,I would like to ask a question,Is there any way to pass arguments to a script?I have this code: Invernadero-read.table(file.choose(),header=T,sep=,) attach(Invernadero) names(Invernadero) Invernadero-ts(Invernadero-argument) //Here introduce the argument

Re: [R] Method

2009-11-25 Thread yonosoyelmejor
, 2009 12:22 PM To: yonosoyelmejor Cc: r-help@r-project.org Subject: Re: [R] Method On Nov 24, 2009, at 1:44 PM, yonosoyelmejor wrote: I use length(myVector),but when i want to use for example exp(x.reconstruida[length(myVector)+1:length(myVector)+9]), I need This may have

Re: [R] Method

2009-11-25 Thread yonosoyelmejor
vector, your code that doesn't work, and the _result you expect to get_ so we can help you. Sarah On Tue, Nov 24, 2009 at 1:44 PM, yonosoyelmejor yonosoyelme...@hotmail.com wrote: I use length(myVector),but when i want to use for example exp(x.reconstruida[length(myVector)+1:length(myVector

Re: [R] Re adline()

2009-11-25 Thread yonosoyelmejor
the windows console (evidently), and as said, I can't reproduce your error. Can you give me the exact command you use to run it from the windows console? Cheers Joris On Tue, Nov 24, 2009 at 7:33 PM, yonosoyelmejor yonosoyelme...@hotmail.com wrote: Sure,but my problem is that the script

Re: [R] Re adline()

2009-11-24 Thread yonosoyelmejor
I put that before selection but Nothing happened...I don´t know because when I executed the code, in the console doesn´t show cat(1-24hours)...and neither asked me Select numers of hours from de line or readline... Peter Dalgaard wrote: yonosoyelmejor wrote: Hello, I would like to ask you

[R] Method

2009-11-24 Thread yonosoyelmejor
Hello, i would like to ask you another question. Is exist anymethod to vectors that tells me the last element?That is to say,I have a vector, I want to return the position of last element. I hope having explained. A greeting, Ignacio. -- View this message in context:

Re: [R] Re adline()

2009-11-24 Thread yonosoyelmejor
) } source(G:/Temp/test.r) # load the saved script test.r You can try to look at ?announce (package odfWeave) instead of cat and flush.console, but I have the slight impression there is something else going wrong. Cheers Joris On Tue, Nov 24, 2009 at 11:10 AM, yonosoyelmejor yonosoyelme

Re: [R] Method

2009-11-24 Thread yonosoyelmejor
having explained, A gretting, Ignacio. Johannes Graumann-2 wrote: myVector - c(seq(10),23,35) length(myVector) myVector[length(myVector)] it's unclear to me which of the two you want ... HTH, Joh yonosoyelmejor wrote: Hello, i would like to ask you another question. Is exist

[R] Re adline()

2009-11-23 Thread yonosoyelmejor
Hello, I would like to ask you a question.I have a program in R and I use the readline method to ask the user some things,but i don´t use the R console but I use Win console then not appear what I put.I put the code as you look for: cat(1- 24horas\n) cat(2- 12horas\n) cat(3- 8horas\n)