Input addresses are tagged into components and the street_number and street_name components are pasted together to create the address stub. If either the street_number or street_name are missing then the address_stub will be returned as missing. If filter_zip is TRUE, then addresses without a parsed 5-digit ZIP code in Hamilton County will have a missing address stub.

create_address_stub(.x, filter_zip = TRUE, ...)

Arguments

.x

a vector of address character strings

filter_zip

force addresses with non-Hamilton ZIP codes to have a missing address_stub?

...

further arguments passed onto tag_address() (e.g., clean) (i.e., cincy::zcta_tigris_2020$zcta_2020)

Value

a vector of cleaned address stubs (street_number + street_name)