sample_neighborhoods: Sample Neighborhoods in a Raster*

Description Usage Arguments Value

Description

Chooses a set of randomly sampled points centered on non-NA cells of the input RasterLayer, and returns a randomly chosen maximal subset of nonoverlapping circles centered at these points.

Usage

1
sample_neighborhoods(x, n, radius, separation = radius, thin = TRUE)

Arguments

x

The Raster* object.

n

The number of points to sample.

radius

The radius of the neighborhoods.

separation

The minimum distance separating neighborhood centers (if thin is TRUE).

thin

Whether to thin neighborhoods.

Value

A named list containing: centers = a SpatialPoints object of centers neighborhoods = SpatialPolygons object of the circle(s) center.cells = the indices of the cells of the Ratser* object that contain the centers


petrelharp/landsim documentation built on May 25, 2019, 2:53 a.m.