declstr_random: Random Declustering

Description Usage Arguments Value Examples

View source: R/random_declustering.R

Description

Function for random points selection from grid cells in a spatial object

Usage

1
declstr_random(spatial_object, cellsize, numpoints)

Arguments

spatial_object

Object of class sfc or sf

cellsize

Target cellsize in map units

numpoints

Number of points that will be chosen from a grid cell

Value

Object of class sf

Examples

1
2
3
points4 = sf::st_read(system.file("points/punkty4.shp", package = "declusteringr"))
x = declstr_random(spatial_object = points4, cellsize = 10000, numpoints = 2)
x

alsarna/declusteringr documentation built on Sept. 29, 2020, 11:59 p.m.