For a particular country maps locations of fields to the centroid of towns. This anonymizes the data by obfuscating the original location.
pbi_map_gadm(df, country)
df | data frame containing lat lon locations |
---|---|
country | country to use in mapping locations to town centroids |
dataframe with lat lon values mapped to centroids