Learn R Programming

WES (version 1.0.0)

coords_to_iso3: Convert coordinates to ISO country code

Description

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).

Usage

coords_to_iso3(lon, lat)

Value

data.frame

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.

Examples

Run this code

coords_to_iso3(lon = c(90.37, 90.38, 90.37),
               lat = c(23.80, 23.80, 23.81))

Run the code above in your browser using DataLab