Learn R Programming

biogeo (version 1.0)

env2stack: Read environmental variable rasters

Description

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

Usage

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

See Also

wclim, extract, alternativesenv

Examples

Run this code
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")

Run the code above in your browser using DataLab