env2stack: Read environmental variable rasters

Description Usage Arguments Value Author(s) See Also Examples

Description

Reads environmental variable rasters from a selected folder into a raster stack

Usage

1
env2stack(foldenv, vars = "", fext)

Arguments

foldenv

a folder containing the environmental variables

vars

names of specific variables that should be selected

fext

file extension e.g. "bil", "grd" or "asc"

Value

a raster stack containing the environmental variables

Author(s)

Mark Robertson

See Also

wclim, extract, alternativesenv

Examples

1
2
3
fd<-system.file(package="dismo")
foldenv<-file.path(fd,"ex", fsep = .Platform$file.sep)
ev<-env2stack(foldenv, vars = c("bio1","bio12","bio5","bio6"), fext="grd")

biogeo documentation built on May 1, 2019, 8:05 p.m.