View source: R/standardize_forecast.R
standardize_forecast | R Documentation |
Transform older (v0.4) standard to current standard
standardize_forecast(
df,
filename = NULL,
reference_datetime_format = "%Y-%m-%d"
)
df |
a forecast data.frame |
filename |
filename, which might be parsed to extract reference_datetime and model_id. Optional. |
reference_datetime_format, |
date or datetime format of reference_time, default to "%Y-%m-%d" model_id and reference_datetime may be omitted if they are supplied in the filename. If these columns exist, then filename is ignored. |
Current standard should have columns:
model_id
reference_datetime
site_id
variable
datetime
family
parameter
prediction
This function does not handle un-pivoted (v0.3) forecast, see pivot_forecast()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.