pickMean {sdmvspecies} | R Documentation |
pickMean
Description
pick mean method
Usage
pickMean(env.stack, subset = NULL, stack = FALSE)
Arguments
env.stack |
a |
subset |
subset is a string |
stack |
stack is an option that if you want not compose them togethor (result return as a |
Details
This method mainly implement pick mean method
Value
rasterLayer
or rasterStack
if stack is set to TRUE
References
Jiménez-Valverde, A., & Lobo, J. M. (2007). Threshold criteria for conversion of probability of species presence to either–or presence–absence. Acta oecologica, 31(3), 361-369.
Examples
# load the sdmvspecies library
library("sdmvspecies")
library("raster")
# find package's location
package.dir <- system.file(package="sdmvspecies")
# let see where is our sdmvspecies is installed in
package.dir
# find env dir under the package's location
env.dir <- paste(package.dir, "/external/env/", sep="")
# let see env dir
env.dir
# get the environment raster file
files <- list.files(path=env.dir, pattern="*.bil$", full.names=TRUE)
# make raster stack
env.stack <- stack(files)
# run pick mean
species.raster <- pickMean(env.stack)
# plot map
plot(species.raster)
[Package sdmvspecies version 0.3.2 Index]