Dear all,
Hope you are doing great. Some R time series functions generate the
forecasts in an horizontal way, for example:
2017 2018 2019 2020
forecast 12 15 35 75
but I´d like to have the output as follows:
Date forecast
2017 12
2018 15
2019 35
2020 75
I tried using the t() function to get the transpose, but after taking the
transpose I was not able to turn it into a data frame.
Any help will be greatly appreciated,
Cheers,
Paul
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.