Skip to contents

Gets 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.

Value

A tibble with columns reference_date, target, location, horizon, and n_models.