vac_parse_zip: Parse Zip Codes from Vaccination Data

vac_parse_zipR Documentation

Parse Zip Codes from Vaccination Data

Description

vac_parse_zip() parses ZIP codes from the address_zip field in vaccination data. It extracts the first 5-digit sequence in the field and compares with a list of valid Shelby County ZIP codes.

Usage

vac_parse_zip(string)

Arguments

string

A character vector of ZIP codes

Value

A character vector of 5-digit ZIP codes. Invalid values are converted to missing; valid ZIP codes outside Shelby County are converted to "Other".


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