Applies thinning to pairs of coordinates until reaching a given n
Source:R/thinning_til_n.R
thinning_til_n.RdResamples a set of points with x and y coordinates by increasing the distance step by step until a given sample size is obtained.
Arguments
- xy
A data frame with columns named "x" and "y" representing geographic coordinates. Default:
NULL- n
Integer, number of samples to obtain. Must be lower than
nrow(xy). Default:30- distance.step
Numeric, distance step used during the thinning iterations. If
NULL, the one percent of the maximum distance among points inxyis used. Default:NULL