consensus_scn: Create consensual projections of climatic scenarios

View source: R/5.2.f.consensus_projections.R

consensus_scnR Documentation

Create consensual projections of climatic scenarios

Description

This function creates consensual projections of climatic scenarios (e.g. GCMs, RCPs, SSPs). User need to supply a 'mcmp' object (returned by proj_mdl), and a list containing vectors of names for grouping projections. Projections will be grouped by matching the character vectors in the list against projection names

Usage

consensus_scn(
  mcmp,
  groups,
  ref = NULL,
  sp.nm = "species",
  save = T,
  numCores = 1
)

Arguments

mcmp

An object returned by proj_mdl, containing calibrated models and model projections for each species; or species "i" of a object returned by "proj_mdl_b", containing a list of calibrated models and model projections for each species

groups

list containing vectors of names for grouping projections.

ref

Character. Name of reference projection (i.e. the one used for calibration and that will not be averaged with any other)

sp.nm

Species name. Used to name the output folder

save

Logical. TRUE to save consensual rasters.

numCores

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

Value

A 'mcmp.l' object. An object returned from function proj_mdl_b, containing the consensual projections for each element (species) of the list

See Also

consensus_scn_b, consensus_gr


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