Description Usage Arguments Details Value Note Author(s) References See Also
Give a coordinate in decimal degree format to assign the corresponding International Organization for Standardization (ISO 3166-1 alpha-2/alpha-3) [1].
1 | coordToISO(coordinates.tab = NULL, iso = 2)
|
coordinates.tab |
Data Frame class. A data frame with at least two columns
called |
iso |
numeric (2 or 3). To define the code whether ISO-2 (iso=2, default value) or ISO-3 (iso=3). |
If the coordinate is outside the continent, this can not be assigned and will be assigned as NaN. If you want to see the oficial ISO codes, you could use the data(ISO2) or data(ISO3) comands.
A table with three columns (decimalLatitude, decimalLongitude, countryCode)
See: R-Alarcon V. and Miranda-Esquivel DR.(submitted) geocleaMT: An R package to cleaning geographical data from electronic biodatabases.
R-Alarcon Viviana and Miranda-Esquivel Daniel R.
[1]ISO 2015. International standard for country codes and codes for their subdivisions. Country codes - iso 3166. International Organization for Standardization. Available online at http://www.iso.org/iso/country_codes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.