run_map | R Documentation |
run_map()
was deprecated in favor of cfp_run_map for consistency.
Create a cfp_run_map for model alteration in alternate()
run_map(
x,
params = list(),
type = NULL,
method = NULL,
n_runs = NULL,
layers_different = FALSE,
layers_from = "layers_map",
layers_altmap = NULL,
topheight_adjust = FALSE
)
x |
Either a cfp_pfres or cfp_fgres model result. |
params |
A named list of numeric vectors. Names indicate column names in soilphys, vectors either distinct values (method permutation) or limits (method random). |
type |
A vector of length param indicating what the values in params represent. One of
|
method |
Either 'random', where a random value is chosen within the
bounds set in |
n_runs |
Integer value of the number of alterations to be done for method = 'random'. |
layers_different |
Should layers from layers_map be changed individually?
If |
layers_from |
(character) If layers_different is TRUE, from which source should the layers be created? One of:
|
layers_altmap |
An optional layers_map created using layers_map() that defines the layers to be used if layers_different = TRUE. |
topheight_adjust |
(logical) If the proposed change in topheight is larger than the highest layer in soilphys, should the limits be automatically adjusted per id_cols individually? Default is FALSE, which leads to an error in that case. |
An object of type cfp_run_map
that can be used within
alternate.
PROFLUX <- ConFluxPro::base_dat |> pro_flux()
# Create a cfp_run_map where TPS is changed between 90 % and 110 %
# of the original value for 50 runs.
cfp_run_map(
PROFLUX,
list("TPS" = c(0.9, 1.1)),
"factor",
n_runs = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.