pointDistSample: Subsamples spatial points with bias against dense points.

Description Usage Arguments Details Value Author(s)

View source: R/pointDistSample.r

Description

This function takes a subsample of points in a SpatialPointsDataFrame object. The subsample is biased towards removing points that are close to other points, therefore reducing the density of highly dense areas. This may be useful in bias adjusting species distribution patterns away from densely sampled areas.

Usage

1
pointDistSample(points, sample.size,id=T)

Arguments

points

A SpatialPointsDataFrame object.

sample.size

The number of points to retain in the sample.

id

Square-root weighting.

Details

Distance from each point to each other point is calculated, and a mean neighbour distance for each point is determined. Distances are normalized, and points with a greater mean distance to other points have a greater probability of being sampled.

Value

A SpatialPointsData Frame.

Author(s)

Grant Williamson


ozjimbob/ecbtools documentation built on Jan. 18, 2021, 7:39 p.m.