.coords2country | R Documentation |
Extracts country ISO3 based on locations
.coords2country( xydat, .countries.shapefile = NULL, .points.proj4string = NULL, ctryNameField = NULL, verbose = FALSE )
xydat |
A dataframe with x and y coordinates |
.countries.shapefile |
SpatialPolygonsDataFrame of world countries and their associated ISO3 codes |
.points.proj4string |
Proj4string for the occurrence data |
ctryNameField |
character. Column name in .countries shapefile where ISO3 are indicated |
verbose |
logical. Print messages? |
Factor with ISO3 codes for countries
Josep M Serra Diaz
Other Geo:
.getSRTM()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.