Description Usage Arguments Details Value Examples
Format 2 vectors in a proper object usable by all algorithms
1 | prepare.ts(dates, values, freq, complete = 0)
|
dates |
A vector of dates that can be parsed by lubridate |
values |
A vector of same size as |
freq |
A chacracter string that indicates the frequency of the time series ("week", "month", "quarter", "day"). |
complete |
A numerical value (or NA) to fill the missing data points |
Creates a list with the time series in a dataframe and a ts object, and the frequency stored in decimal and litteral values. The result is meant to be put in the prophet or forecast functions
A list containing : a dataframe, a ts vector for the time series, and 2 scalars for its frequency
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.