View source: R/util_functions.R
ts_to_prophet | R Documentation |
Transform a time series object to Prophet data frame input format
ts_to_prophet(ts.obj, start = NULL)
ts.obj |
A univariate time series object of a class "ts", "zoo", "xts", with a daily, weekly, monthly , quarterly or yearly frequency |
start |
A date object (optional), if the starting date of the series is known. Otherwise, the date would be derive from the series index |
A data frame object
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.