Apply a previously build geocoder to target data. This function will
apply whatever unique variables exist in the geocoder. See gw_build_geocoder
for options.
gw_geocode(.data, type, address, class, side = "right", geocoder, include_result = TRUE)
.data | A target data set |
---|---|
type | Geocoder type; one of either |
address | Address variable in the target data set, which should contain the house number,
street directionals, name, and suffix, and optionally unit types and numbers as well. Unit
names should be replaced with |
class | Output class; one of either |
side | One of either |
geocoder | Name of object containing a geocoder built with |
include_result | Logical scalar; if |
A copy of the target data with georeferenced data applied to it.