geotype: Infer Type of Data as FIPS / ANSI Codes or Names of U.S....

View source: R/geotype.R

geotypeR Documentation

Infer Type of Data as FIPS / ANSI Codes or Names of U.S. Geographies - obsolete. See EJAM package function called fipstype()

Description

Tries to interpret vector of one or more FIPS codes and/or names of geographies.

Usage

geotype(x, cleancounties = TRUE)

Arguments

x

Required vector of one or more numeric or character FIPS and/or names of geographic locations. Allowed types are State, County (or equivalent), tract, block group, and block. Names for tracts, blockgroups, and blocks are not provided or interpreted. FIPS codes here are all the relevant digits starting with the 2-character state FIPS, so county fips must be 4-5 digits or characters for example (leading zeroes are inferred where possible and included in outputs). See clean.fips() for details.

cleancounties

whether to try to validate county FIPS based on list that ideally is always up to date

Value

***TBD *** Returns *** types as character strings, and maybe cleaned values themselves? ***

See Also

geofips(), get.fips.st() and related functions noted there, clean.fips(), get.state.info()

Examples

# none yet

ejanalysis/ejanalysis documentation built on April 2, 2024, 10:12 a.m.