buffer_f: Buffer points in 'XY' space

View source: R/buffer_f.R

buffer_fR Documentation

Buffer points in XY space

Description

Returns the original data table with buffered points removed.

Runs numerous iterations, as the random point selection can result in more/fewer output points.

  1. Randomly select a single point

  2. Remove points within 50km of that point

  3. Randomly select of the remaining points

Usage

buffer_f(foo, buffer, reps)

Arguments

foo

a data.frame to select from with columns x, y

buffer

the minimum distance between output points

reps

the number of repetitions for the points selection

Note

Taken from https://davidrroberts.wordpress.com/2015/09/25/spatial-buffering-of-points-in-r-while-retaining-maximum-sample-size/

Author(s)

David R. Roberts (2015)

Luigi Ranghetti, phD (2018) ranghetti.l@irea.cnr.it


ranghetti/guinterp documentation built on July 11, 2024, 12:19 p.m.