This function takes a set of longitude and latitude coordinates and retrieves the administrative units that each point lies within. The administrative units are given in the ISO-3166 Alpha-3 country code standard (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3).

coords_to_iso3(lon, lat)

Arguments

lon

A numeric vector giving the longitude of the sampling sites in Decimal Degrees.

lat

A numeric vector giving the latitude of the sampling sites in Decimal Degrees.

Value

data.frame

Examples

if (FALSE) {

coords_to_iso3(lon = template_es_data$lon,
               lat = template_es_data$lat)

}