get_county_cd: Get all FIPS county codes within a state

Description Usage Arguments Details Value Examples

View source: R/get_data.R

Description

This function will return all county FIPS codes for all counties within a state or states.

Usage

1

Arguments

state

Character vector giving the name of state or states (not case sensitive) for which you would like to get county FIPS codes.

Details

This function uses the county.fips dataset from the maps package to pull county FIPS for a state.

Value

A character vector with the 5-digit FIPS codes for all counties within the specified state or states.

Examples

1
2
 get_county_cd("Virginia")
 get_county_cd(c("North Carolina", "South Carolina"))

countyfloods documentation built on Nov. 17, 2017, 5:15 a.m.