Re: [R] Help with a code in R

2016-09-07 Thread Mark Sharp
me(forecast_nal,fct) > } > else > { > > fit <- tbats(y) > fcb <- forecast(fit, h = 16) > dates <- attr(fcb$mean, "tsp") > datecol <- seq(from=dates[1], to=dates[2], by=1/dates[3]) > fct<-cbind.data.frame(s,datecol,Point=fcb$mean) >forecast_

Re: [R] Help with a code in R

2016-09-07 Thread Erika Rocío Espinosa Balbuena
GMT-05:00 PIKAL Petr : > Hi > > > > see in line > > > > *From:* Erika Rocío Espinosa Balbuena [mailto:erika...@gmail.com] > *Sent:* Tuesday, September 6, 2016 10:52 PM > *To:* PIKAL Petr > *Cc:* r-help@r-project.org > *Subject:* Re: [R] Help wit

Re: [R] Help with a code in R

2016-09-07 Thread PIKAL Petr
Hi see in line From: Erika Rocío Espinosa Balbuena [mailto:erika...@gmail.com] Sent: Tuesday, September 6, 2016 10:52 PM To: PIKAL Petr Cc: r-help@r-project.org Subject: Re: [R] Help with a code in R Hi Erika Yes the objetcs have the same structure, and forecast_nal is the variable where I a

Re: [R] Help with a code in R

2016-09-07 Thread Erika Rocío Espinosa Balbuena
Hi, Yes the objetcs have the same structure, and forecast_nal is the variable where I a trying to keep all the results of the forecast but I get the error that it is only allowed the replacement. 2016-09-06 1:31 GMT-05:00 PIKAL Petr : > Hi > > Well, it seems to me that it is coded in different l

Re: [R] Help with a code in R

2016-09-06 Thread Bert Gunter
?traceback ?debug ?trace R has built-in debugging tools. Learn to use them. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Sep 5, 2016 at 1

Re: [R] Help with a code in R

2016-09-05 Thread PIKAL Petr
Hi Well, it seems to me that it is coded in different language like C++. The code is not reproducible but the error seems to be from your call of ts You can check it line by line with setting i to arbitrary value and inspect how your objects look like, however some of your constructions seems to

Re: [R] Help with a code in R

2016-09-05 Thread Mark Sharp
Erika, You have failed to supply reproducible code. I do not all that is missing, but a glance shows that you did not include the code to load the foreach package or a definition of the objects named comb and b. It is very likely you will receive assistance if you can follow the posting guide