Skip to contents

Get the identifier of the closest census block group based on the intersection of the s2 cell locations with the the US Census TIGER/Line shapefiles

Usage

s2_join_tiger_bg(x, year = as.character(2013:2023))

Arguments

x

s2_cell vector

year

vintage of TIGER/Line block group geography files

Value

character vector of matched census block group identifiers

Examples

s2_join_tiger_bg(x = s2::as_s2_cell(c("8841b39a7c46e25f", "8841a45555555555")), year = "2023")
#> [1] "390610032001" "210370519034"