Skip to contents

Is it a census block FIPS code?

Usage

is_block_fips(x)

Arguments

x

A character vector.

Value

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

Examples

is_block_fips(c("060372062001001", NA))
#> [1] TRUE   NA