This function takes a base forecast dataset and counts the number of
trajectories per location. In this context a trajectory is a sequence
of forecast values (i.e. rows in base forecast) with the same
draw id and location along with ascending date values.
Usage
count_trajectories(base_forecasts, location_col, date_col)
Arguments
- base_forecasts
The base forecast dataset.
- location_col
The name of the column containing the location
information.
- date_col
The name of the column containing the date information.
Value
A tibble with the number of samples per forecast, grouped
by location.