<- 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
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>
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
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
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
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
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
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']
8 matches
Mail list logo