vac_prep | R Documentation |
vac_prep()
prepares vaccination data for analysis. It performs the
following steps:
Standardize variable names
Extract ZIP codes; convert non-Shelby to "Other"
, invalid to NA
Determine Shelby County residency based on ZIP
Convert dose_count
to integer
vac_prep( data = read_vac(), distinct = FALSE, filter_doses = TRUE, filter_residents = TRUE )
data |
Vaccination data, as loaded by
|
distinct |
Should data be de-duplicated to distinct individuals? The latest valid dose will be kept. |
filter_doses |
Should invalid doses be removed? |
filter_residents |
Should records for individuals outside of Shelby Co be removed? This retains records whose residence is unknown. |
A tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.