buffer_indices: Apply an inclusion radius and exclusion buffer to indices

View source: R/buffer.R

buffer_indicesR Documentation

Apply an inclusion radius and exclusion buffer to indices

Description

Apply an inclusion radius and exclusion buffer to indices

Usage

buffer_indices(data, indices, radius, buffer, call = rlang::caller_env())

Arguments

data

An object of class sf or sfc.

indices

List of indices in each fold generated by split_unnamed().

radius

Numeric: points within this distance of the initially-selected test points will be assigned to the assessment set. If NULL, no radius is applied.

buffer

Numeric: points within this distance of any point in the test set (after radius is applied) will be assigned to neither the analysis or assessment set. If NULL, no buffer is applied.


spatialsample documentation built on Nov. 8, 2023, 1:08 a.m.