pseudo.absence: sample background aka pseudo-absence data

Description Usage Arguments Details Value Examples

View source: R/func.dataset.R

Description

takes SpatialPoints or SpatialPointsDataFrame and add values from FIXME

Usage

1
2
3
pseudo.absence(presence, raster, area = NULL, sample.size = 1000,
  extent = "raster", buffer = NULL, chunks = NULL, verbose = TRUE,
  seed = NULL, xtracols = NULL, out = "spdf", colname = NULL)

Arguments

presence

SpatialPoints of presence data

raster

RasterLayer is required for sampling. If buffer=NULL, the background is sampled without the pixels with presence data.

area

SpatialPolygons or SpatialPolygonsDataFrame with an area within raster to be sampled (cmp. extent)

sample.size

The sample size

extent

Eiter raster(default), extent, or area. Sample the whole area (extent), only where raster vals are !=NA (rater) or confined to an area (area).

buffer

Perimeter around presence data where background is not sampled. Distance unit of buffer: see raster::buffer.

verbose

Be verbose

seed

Seed for random background sampling

xtracols

transfer given features from presence–input data SpatialPointsDataFrame to returned SpatialPointsDataFrame.

out

If spdf(default), a SpatialPointDataFrame is returned with a column "presence" with 1:presence 0:absence. If sp, only the SpatialPoints of the background are returned. Overrides xtracols

colname

New colnames for xtracols. length(colname)==length(xtracols).

Details

#FIXME

Value

SpatialPointsDataFrame or SpatialPoints. See out.

Examples

1
#FIXME

janhoo/crecs documentation built on May 18, 2019, 12:25 p.m.