Skip to contents

Is it a census block-group FIPS code?

Usage

is_block_group_fips(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for a 12-digit code with a valid state prefix.

Examples

is_block_group_fips(c("060372062001", NA))
#> [1] TRUE   NA