check_nngeo: check and assign potential geographic country to lat/lon...

Description Usage Arguments Value Examples

View source: R/check_nngeo.R

Description

check and assign potential geographic country to lat/lon position

Usage

1
check_nngeo(.sf_pts, .poly, .maxdist = 1e+05, ...)

Arguments

.sf_pts

simple feature sf of position points (lat/lon)

.poly

sf polygon(s) to verify whether points are in or next (.maxdist) from polygon (e.g. aircraft position over country or waters close by)

.maxdist

maximum distance in meters, e.g. 100km = 100000

Value

country code derived from .poly added to input sf_pts object

Examples

1
2
3
4
## Not run: 
 check_nngeo(mysf, world)

## End(Not run)

rainer-rq-koelle/COVID19airtraffic documentation built on March 26, 2021, 5:18 a.m.