clean_census_block {naaccr}R Documentation

Clean Census block group codes

Description

Clean Census block group codes

Usage

clean_census_block(block, keep_unknown = FALSE)

Arguments

block

A character vector of Census block group codes.

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 values representing unknown block groups are replaced with NA.


[Package naaccr version 2.0.2 Index]