countyFIPS: Identify counties for non-county locations

Description Usage Arguments Value Examples

View source: R/countyFIPS.R

Description

countyFIPS converts lat/lon coordinates, location names, or place FIPS codes to county-level FIPS codes.

Usage

1
countyFIPS(lat, lon, location = NULL, place = NULL, key = NULL)

Arguments

lat

The latitude coordinate for a location

lon

The longitude coordinate for a location

location

The name of a location given as a string

place

The Place FIPS Code given as a string

key

Your Google API key for geocoding location strings and place FIPS

Value

A dataframe returning the queried coordinates and resulting state, county, and county FIPS

Examples

1
2
3
countyFIPS(lat = 39.9526, lon = -75.1652)
countyFIPS(location = "Philadelphia, PA", key = "XXXXXXXXXXXXXX")
countyFIPS(place = "4260000", key = "XXXXXXXXXXXXXX")

sf585978/countyFIPS documentation built on Aug. 9, 2019, midnight