Standardize a raw Epic data table.
Arguments
- raw_data
Raw Epic data, such as returned from pophive_read_epic.
Standardization
Collapse location columns (
state
orcounty
) to a singlegeography
column, and region names to IDs.Collapse time columns (
year
,month
, orweek
) to a singletime
column, and clean up value formatting.Drop rows with no values across value columns.
Examples
if (FALSE) { # \dontrun{
raw_data <- pophive_read_epic("data/epic/raw/flu.csv.xz")
standard_data <- pophive_process_epic_raw(raw_data)
} # }