Re: [R] Help with a code in R

2016-09-07 Thread Mark Sharp
<- rbind.data.frame(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

Re: [R] Help with a code in R

2016-09-07 Thread Erika Rocío Espinosa Balbuena
GMT-05:00 PIKAL Petr <petr.pi...@precheza.cz>: > 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 <petr.pi...@precheza.cz>

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 <petr.pi...@precheza.cz> 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 foreca

Re: [R] Help with a code in R

2016-09-07 Thread Erika Rocío Espinosa Balbuena
me into existence. > > BTW, are you sure that in each cycle your rbinded or cbinded objects have > the same size? > > Cheers > Petr > > > > -Original Message- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Erika > Rocío > > Espinos

Re: [R] Help with a code in R

2016-09-06 Thread Bert Gunter
2, > : > only replacement of elements is allowed > > Can someone help me with this? > > Thanks > > > -- > Erika Rocío Espinosa Balbuena > > [[alternative HTML version deleted]] > > __ > R-help@r-project.or

Re: [R] Help with a code in R

2016-09-06 Thread PIKAL Petr
r rbinded or cbinded objects have the same size? Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Erika Rocío > Espinosa Balbuena > Sent: Monday, September 5, 2016 8:26 PM > To: r-help@r-project.org > Subject: [R] Help wit

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

[R] Help with a code in R

2016-09-05 Thread Erika Rocío Espinosa Balbuena
Hi, I am working with this code: forecast_nal<-data.frame() out<-vector() x<-foreach(i=1:nrow(comb)) %do% { s<-comb[i,'prod_id'] #Familia+Sumbarca+prod_id #Serie bcomb1<-b bcomb1<-subset(bcomb1,bcomb1$prod_id == s & bcomb1$year <= 2015) bcomb1<-arrange(bcomb1,year,week) a<-bcomb1[1:1,'week']