Intelligently bind together data with gadm IDs at all scales.
Usage
assoc_gadm(
df,
lonlat_names = c("Longitude", "Latitude"),
cache_location = NULL,
basereq = ad_basereq()
)Arguments
- df
the source data to bind gadm IDs to. This must contain decimal lonlat data!
- lonlat_names
a vector containing the column names of the longitude and latitude columns IN THAT ORDER!
- cache_location
path to cache location (defaults to a temporary user directory, or one set by
set_default_ohvbd_cache()).- basereq
the url of the AREAdata database (usually generated by
ad_basereq()). IfNA, uses the default.