Skip to content
Prev 367822 / 398500 Next

How to get the transpose of R´s function forecast output and turn it into a data frame

Hi Paul,
As Peter noted, without knowing the structure of the the object, only
a guess can be made. Mine is:

fdf<-data.frame(Date=names(forecast),forecast=forecast)

You may want to apply as.numeric to the names.

Jim
On Thu, Mar 16, 2017 at 11:43 PM, Paul Bernal <paulbernal07 at gmail.com> wrote: