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)

Arguments

df

data frame containing lat lon locations

country

country to use in mapping locations to town centroids

Value

dataframe with lat lon values mapped to centroids