expand_LCs: Expand land cover-based parameter ranges (deprecated)

Description Usage Arguments Value

View source: R/fn_aux.R

Description

Similar to expand.grid but inputs a vector of minimum values and a vector of maximum values in addition to a length.out parameter. It returns a list of vectors, with an element for each combination of land cover parameters. By default, all.combo=FALSE and all land covers are incremented jointly. If all.combo=TRUE, then all combinations of land cover parameter values will be output. If LC="all", then all land cover types will be incremented across the specifie range. If LC is set to a specific land cover category, then only that category will be incremented while the other categories are held constant.

Usage

1
2
expand_LCs(gp = g.p, param = NULL, LC = "all", all.combo = FALSE,
  len_out = 6, lc.min = rep(0.1, 6), lc.max = rep(0.9, 6))

Arguments

gp

Named list of global parameters. If LC != "all", then default values from g.p are used for the land cover categories that are not being varied.

param

NULL Character scalar of which parameter to vary. If LC != "all", then this must be specified.

LC

Character scalar of which land cover categories to increment; must take one of c("all", "Opn", "Oth", "Dec", "WP", "Evg", "Mxd")

all.combo

FALSE Should all combinations of all land cover values be generated?

lc.min

Vector length=n.lc of minimum parameter values.

lc.max

Vector length=n.lc of maximum parameter values

len.out

Number of parameter values per land cover category

Value

List of vectors, each length 6


Sz-Tim/gbPopMod documentation built on Dec. 7, 2020, 1:07 p.m.