if (FALSE) {
x <- data.frame(
decimalLatitude = c(-22.9834, -39.857030, -17.06811, -46.69778),
decimalLongitude = c(-69.095, -68.443588, 37.438108, -13.82444),
country = c("", NA, NA, "Brazil"))
bdc_country_from_coordinates(
data = x,
lat = "decimalLatitude",
lon = "decimalLongitude",
country = "country"
)
}
Run the code above in your browser using DataLab