Sex/gender frequency table and age-distribution summary.
Arguments
- data
Either a data frame (e.g. the output of
morie_fetch_siu()read in) or a path toSIU_by_case.csv.NULL(the default) looks infile.path(tempdir(), "morie", "siu", "SIU_by_case.csv").
Examples
df <- data.frame(
sex_gender_affected = c("Male", "Female", "Male", "Male", NA),
age_affected = c("34", "27", "55", "19", "42"))
r <- morie_siu_demographics(df)
r$title
#> [1] "Affected-person demographics"
