Skip to contents

taf_zip() reads and transforms taf() data for a subset of ZIP codes. It reconstructs the county_fips, s2_geography, and addr_street vectors in the returned data frame.

Usage

taf_zip(x, map = TRUE, year = as.character(2025:2011), version = "v1")

Arguments

x

character vector of five-digit ZIP codes

map

logical, length 1; map street tags read from taf() data (type, directional, ordinal) when converting to addr_street() vector?

year

character, length 1; vintage of TIGER addrfeat (address feature) files

version

character, length 1; major version of the package and taf dataset schema

Value

a tibble with LINEARID, FULLNAME, side, ZIP, FROMHN, TOHN, PARITY, OFFSET, s2_geography, addr_street, county_fips, and street_tag_parsed columns

Examples

if (FALSE) { # \dontrun{
  Sys.setenv("R_USER_DATA_DIR" = tempfile())
  taf_install("39061", "2025")
  taf_zip(c("45249", "45230", "45220"))
} # }