sampleDist: Sample data according to a spatial sampling window.

Description Usage Arguments Value

View source: R/sampleDist.R

Description

Sample data according to a spatial sampling window.

Usage

1
sampleDist(data, window, id, res, method, write = FALSE, name = "simulation")

Arguments

data

Data.frame. (colnames:x,y). A dataframe of species occurrences (x,y).

window

Data.frame. (colnames:x,y). A dataframe of the sampling window/occurrences (x,y).

id

Vector. A vector of sampling IDs (e.g. collection numbers)

res

Numeric. Value used to convert sampling points into a sampling grid. The value of res indicates the resolution of the raster generated. A higher value generates more generous sampling, while lower represents more conservative sampling. If used in conjunction with LBGSim(), res should equal the same as used by LBGtype().

Value

A data.frame of the original input data and whether the data would be sampled or not.


LewisAJones/LBGSim documentation built on March 28, 2020, 12:03 a.m.