vac_prep: Prepare Vaccine Data for Analysis

View source: R/vac_prep.R

vac_prepR Documentation

Prepare Vaccine Data for Analysis

Description

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

Usage

vac_prep(
  data = read_vac(),
  distinct = FALSE,
  filter_doses = TRUE,
  filter_residents = TRUE
)

Arguments

data

Vaccination data, as loaded by read_vac()

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.

Value

A tibble


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.