'create_report_ytd_medians' generates a data frame of median year-to-date
counts for each disease up to the given month (months 1:m) across all years in the data.
This provides a robust central tendency measure for YTD values.
Usage
create_report_ytd_medians(data, diseases, m)
Arguments
data
Dataframe. Input data with columns:
disease (character)
year (integer)
month (integer)
counts (integer)
diseases
Character vector. Diseases to include in the report
m
Integer. Report month (1-12)
Value
Dataframe with one row per disease and columns for disease name and
median YTD counts.