View source: R/estimate abundance.r
cropLayers | R Documentation |
Crop raster layers to fit data in a smaller region using user defined buffer
cropLayers(species, buffer, 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 |
Envlayers |
A RasterBrick (a multi-layer raster object) |
Xinhai Li (Xinhai_li_edu@126.com)
attach(species) # load occurrences data
BioClim <- brick('D:/GIS/CLIMATE/var27.grd')
BioClim = cropLayers(species, buffer=0.5, Envlayers=BioClim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.