View source: R/avail_forecasts.R
avail_forecasts | R Documentation |
Given a data set with forecasts, count the number of available forecasts for arbitrary grouping (e.g. the number of forecasts per model, or the number of forecasts per model and location). This is useful to determine whether there are any missing forecasts.
avail_forecasts(data, by = NULL, collapse = c("quantile", "sample"))
data |
A data.frame or data.table with the predictions and observations.
For scoring using
For scoring integer and continuous forecasts a
For scoring predictions in a quantile-format forecast you should provide
a column called
In addition a You can check the format of your data using |
by |
character vector or |
collapse |
character vector (default is |
A data.table with columns as specified in by
and an additional
column with the number of forecasts.
avail_forecasts(example_quantile,
collapse = c("quantile"),
by = c("model", "target_type")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.