clean_address_city {naaccr}R Documentation

Clean city names

Description

Clean city names

Usage

clean_address_city(city, keep_unknown = FALSE)

Arguments

city

A character vector of city names.

keep_unknown

Replace values for "unknown" with NA?

Value

A character vector with leading and trailing whitespace removed. If keep_unknown is FALSE, blanks and "UNKNOWN" are replaced with NA.


[Package naaccr version 2.0.2 Index]