get_country: Determines Country Names for Coordinate Points Located in the...

Description Usage Arguments Details References Examples

View source: R/3_get_country.R

Description

Given a list of geographic coordinates in the continent, determines the country name for each coordinate point. First uses a SpatialPolygonsDataFrame with 10 m precision to calculate the country names. Then if there are still points without a name assigned, uses a SpatialPolygonsDataFrame with 50 m precision, thus trying to calculate the name for less accurate points.

Usage

1
get_country(icoords)

Arguments

icoords

data frame with three columns: id | lon | lat where: 'id' is the row identifier for the coordinates in the original list of coordinates, 'lon' is the longitude in the range (-180, +180) and 'lat' is the latitude. Both coordinates are in decimal degrees.

Details

Input:

Output:

References

Made with Natural Earth. Free vector and raster map data @ naturalearthdata.com.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
## First run
get_lon180(coords = ispd)
## Or
test_geocoord(coords = eraclim_uao_fp)
## Then run
get_country(icoords = coords_ok)

## End(Not run)

mcmventura/stlocationqc documentation built on May 24, 2019, 11:43 p.m.