[R] Formatting the dates generated by the forecast function

Paul Bernal paulbernal07 at gmail.com
Fri Oct 6 20:30:55 CEST 2017


Dear friend, hope you are doing great,

I have the following code:

> myTseriesData <- ts(data[,2], start=c(2000,01), end=c(2017,9),
frequency=12)
> myTseriesModel <- auto.arima(myTseriesData, d=1, D=1)
> myTseriesForecast <- forecast(myTseriesModel, h=12)
> # I want to be able to format the dates generated by the forecast function


is there a way to change the format of the dates generated by the forecast
function into a YYYY-mm-dd format?

Any hint or guidance will be greatly appreciated,

Best of regards,

Paul

	[[alternative HTML version deleted]]



More information about the R-help mailing list