Count designated models per reference_date, target, location, and horizon.
Source:R/generate_hub_ensemble.R
count_designated_models.RdGets the number of designated models that contributed forecasts for each combination of target, location, reference date, and horizon; useful for checking minimum model thresholds for ensemble reporting.
Usage
count_designated_models(
base_hub_path,
reference_dates = NULL,
targets = NULL,
horizons = NULL
)Arguments
- base_hub_path
character, path to the base hub directory.
- reference_dates
character or Date vector of reference dates in YYYY-MM-DD format. If NULL (default), includes all available reference dates.
- targets
character vector of target names to include. If NULL (default), includes all supported targets.
- horizons
integer vector of horizons to include. If NULL (default), includes all available horizons.