addEsriAddress: Add address information to a dataframe

Description Usage Arguments Value References Examples

View source: R/addEsriAddress.R

Description

ESRI APIs are used to determine address information associated with the locations specified by the longitude and latitude columns of the incoming dataframe.

Usage

1
2
3
4
5
6
addEsriAddress(
  df,
  lonVar = "longitude",
  latVar = "latitude",
  existingMeta = NULL
)

Arguments

df

dataframe with geolocation information (e.g. those created by wrcc_qualityControl() or airsis_qualityControl)

lonVar

name of longitude variable in the incoming dataframe

latVar

name of the latitude variable in the incoming dataframe

existingMeta

existing 'meta' dataframe from which to obtain metadata for known monitor deployments

Value

Input dataframe with additional columns: siteName, countyName.

References

https://developers.arcgis.com/rest/geocode/api-reference/geocoding-reverse-geocode.htm

Examples

1
2
3
4
5
## Not run: 
df <- data.frame(longitude=c(-121,-122,-123),latitude=c(42,43,44))
addEsriAddress(df)

## End(Not run)

PWFSLSmoke documentation built on July 8, 2020, 7:19 p.m.