Skip to contents

Sex/gender frequency table and age-distribution summary.

Usage

morie_siu_demographics(data = NULL)

Arguments

data

Either a data frame (e.g. the output of morie_fetch_siu() read in) or a path to SIU_by_case.csv. NULL (the default) looks in file.path(tempdir(), "morie", "siu", "SIU_by_case.csv").

Value

A morie_rich_result list.

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"