FIPS_converter: Convert coordinates to FIPS

Description Usage Arguments Examples

Description

Convert geocoded coordinates to a FIPS code. Can be used for a data set or a single data point.

Usage

1
FIPS_converter(id, lat, long, state_data, dataset = NULL)

Arguments

id

Id to be preserved in the output

lat

Latiutude

long

Longitude

state_data

Shapefiles for the state

dataset

The data set you would like to join the results onto

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Mayo = grab_shapefiles(c("MN", "WI"))
FIPS_converter(id = c("House 1", "House 2", "House 3"),
               lat = c(44.079216, 45.8283963, 46.1252037),
               long = c(-92.66854, -95.4019813, -95.4569129),
               state_data = Mayo)

            id         FIPS
1 Some house 1 271090019002
2 Some house 2 270419509001
3 Some house 3 271119615001

nancyorgan/fips.tools documentation built on May 10, 2019, 12:10 a.m.