proj_mdl_b: Project calibrated MaxEnt models for several species onto...

View source: R/5.1.f.mscn.projection.R

proj_mdl_bR Documentation

Project calibrated MaxEnt models for several species onto multiple environmental scenarios

Description

This function will read an object returned by "calib_mdl_b", read the calibrated models and project into several environmental (areas/climatic) scenarios (specified in a.proj.l). These new projections will be returned together with (appended to) each element (species) the original object.

Usage

proj_mdl_b(
  mcm.l,
  a.proj.l,
  format = "raster",
  numCores = 1,
  parallelTunning = FALSE,
  parallelProj = TRUE
)

Arguments

mcm.l

A list of objects returned by "calib_mdl", containing calibrated models.

a.proj.l

A list of Raster* objects or data.frames where models will be projected. Argument 'x' of dismo::predict

format

Character. Output file type. Argument 'format' of raster::writeRaster

numCores

Number of cores to use for parallelization. If set to 1, no paralellization is performed

parallelTunning

Should parallelize within species (parallelTunning=TRUE) or between species (parallelTunning=FALSE)

parallelProj

Should parallelize within species (parallelProj=TRUE) or between species (parallelProj=FALSE)? This argument is used to make multiple projections in parallel within species. parallelTunning must be set to FALSE.

Value

A 'mcmp.l' object. A list of objects returned from function proj_mdl, containing the new (multiple) projections for each element (species) of the list

See Also

mod_sel, calib_mdl, calib_mdl_b, maxent, ENMevaluate, ENMevaluate_b, proj_mdl

Examples

## Not run: 
mxnt.mdls.preds.pf <- proj_mdl_b(mcm.l = mxnt.mdls.preds.lst, a.proj.l = area.projection.pf)

## End(Not run)

HemingNM/ENMwizard documentation built on Jan. 4, 2024, 3:24 p.m.