View source: R/horizon_utils.R
| convert_months_to_horizon | R Documentation |
Convert a forecast horizon in months to periods
convert_months_to_horizon(months, aggregation)
months |
Numeric, the horizon in months (as set by the app's "Forecast Horizon (months)" slider). |
aggregation |
One of |
A numeric horizon in the same units as aggregation (e.g. days,
for aggregation = "day"), suitable for a model's forecast(model, h)
call.
convert_months_to_horizon(12, "day")
convert_months_to_horizon(12, "month")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.