Skip to contents

Internal helper function that processes one target, filtering data, gathering contributing teams, and generating the formatted text block.

Usage

generate_target_text_block(
  target,
  disease,
  ensemble_data,
  all_target_data,
  all_forecasts_data,
  all_model_metadata,
  hub_name,
  reference_date,
  included_locations
)

Arguments

target

Character, the target name.

disease

Character, disease name.

ensemble_data

Data frame of ensemble forecast data.

all_target_data

Data frame of target time series data.

all_forecasts_data

Data frame of all forecasts data.

all_model_metadata

Data frame of model metadata.

hub_name

Character, hub name.

reference_date

Date, the reference date.

included_locations

Character vector of location codes.

Value

Character string containing the target-specific webtext block, or empty string if no data found.