powered by
Transform a time series object to Prophet data frame input format
ts_to_prophet(ts.obj, start = NULL)
A data frame object
A univariate time series object of a class "ts", "zoo", "xts", with a daily, weekly, monthly , quarterly or yearly frequency
A date object (optional), if the starting date of the series is known. Otherwise, the date would be derive from the series index
data(USgas) ts_to_prophet(ts.obj = USgas) # If known setting the start date of the input object ts_to_prophet(ts.obj = USgas, start = as.Date("2000-01-01"))
Run the code above in your browser using DataLab