mutate_latlon: Add latitude and longitude columns to a standard address
Description
Add latitude and longitude columns to a standard address
Usage
mutate_latlon(DT, data_dir = getOption("healthyAddress.data_dir"))Value
DT with the columns lat and lon added, by reference,
the latitude and longitude of the address for that row.
Arguments
- DT
A data.table from standardize_address
- data_dir
The directory in which the latitude longitude data has been
downloaded. (See download_latlon_data.)