# S3 method for character
fips_info(fips, sortAndRemoveDuplicates = FALSE, data_year = NULL)
Value
A data frame with the states or counties and the associated
FIPS codes.
If fips is omitted, the data frame containing all available states is
returned.
Arguments
fips
A one to five digit, either numeric
or character, vector of FIPS codes for which to look up states or counties.
States have a two digit FIPS code and counties have a five digit FIPS
code (where the first 2 numbers pertain to the state).
sortAndRemoveDuplicates
Whether or not to sort the output and remove
duplicates. By default, the output will be returned in the order of
the values provided to the fips parameter. Set this parameter to TRUE
to return the output sorted by FIPS with a single instance of each FIPS.
data_year
The year for which to obtain FIPS data. If the value is NULL,
the most recent year's data is used. If the provided year is not found from
the available map data sets, the next most recent year's data is used.
The default is NULL, i.e. the most recent available year is used.