View source: R/5.2.f.consensus_projections.R
consensus_scn_b | R Documentation |
This function creates consensual projections of climatic scenarios
(e.g. GCMs, RCPs, SSPs) for multiple species.
User need to supply a 'mcmp.l' object (returned by proj_mdl_b
),
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
consensus_scn_b(mcmp.l, groups, ref = NULL, save = T, numCores = 1)
mcmp.l |
Object returned by |
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) |
save |
Logical. TRUE to save consensual rasters. |
numCores |
Number of cores to use for parallelization. If set to 1, no paralellization is performed |
A 'mcmp.l' object. An object returned from function proj_mdl_b
,
containing the consensual projections for each element (species) of the list
consensus_scn
, consensus_gr
## Not run:
# see projection names
names(mxnt.mdls.preds.cf[[1]]$mxnt.preds)
# create two vectors containing grouping codes
yr <- c(2050, 2070)
rcp <- c("RCP45", "RCP85")
# run
mxnt.mdls.preds.cf <- consensus_scn_b(mcmp.l=mxnt.mdls.preds.cf, groups = list(yr, rcp))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.