View source: R/estimate abundance.r
getEnvData | R Documentation |
This function provides pseudo-absent points using user defined sample size, derives values of environmental variables at occurrences and pseudo-absent points.
getEnvData(species, buffer, absence, Envlayers)
species |
A data.frame of species occurrences with columns "Name_E", "Lon", "Lat", "Date", "Count" |
buffer |
A value of distance (unit: degree) defining the width of buffer zone outside the occurrences |
absence |
The number of pseudo-absent points on the longitude side and the latitude side |
Envlayers |
A RasterBrick (a multi-layer raster object) |
Return a data.frame with values of environmental variables at occurrences and pseudo-absent points.
Xinhai Li (Xinhai_li_edu@126.com)
attach(species) # load occurrences data
BioClim <- brick('D:/GIS/CLIMATE/var27.grd')
Data = getEnvData(species, buffer=0.5, absence=30, Envlayers=BioClim); head(Data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.