calc_nngeo_and_save: Nearest neighbour and temp save for purrr iteration

Description Usage Arguments Examples

View source: R/calc_nngeo_and_save.R

Description

Wrapper function to have the (i) nearest neighbour and (ii) save while iterating over large dataset. This is to reduce the risk of loosing the work, if things fail or are switched off :) The OSN data set for 2019 is about 7 mio flights without id for lat/lon. That runs for days ...

Usage

1
calc_nngeo_and_save(.sf_pts, .poly, .prefix, .pth = pth, ...)

Arguments

.sf_pts

sf dataframe of lat/lon

.poly

world polygons

.prefix

any code for the tmp folder

.pth

path to store temp files

Examples

1
2
3
4
## Not run: 
 calc_nngeo_and_save(sf_pts, world, "DEP")
 
## End(Not run)

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