Set model parameters from a named list
PCMParamSetByName(model, params, inplace = TRUE,
replaceWholeParameters = FALSE, deepCopySubPCMs = FALSE,
failIfNamesInParamsDontExist = TRUE, ...)
a PCM model object
a named list with elements among the names found in model
logical indicating if the parameters should be set "inplace" for the model object in the calling environment or a new model object with the parameters set as specified should be returned. Defaults to TRUE.
logical, by default set to FALSE. If TRUE, the parameters will be completely replaced, meaning that their attributes (e.g. S3 class) will be replaced as well (dangerous).
a logical indicating whether nested PCMs should be
'deep'-copied, meaning element by element, eventually preserving the
attributes as in model
. By default this is set to FALSE, meaning
that sub-PCMs found in params
will completely overwrite the
sub-PCMs of with the same name in model
.
logical indicating if an error should be
raised if params
contains elements not existing in model.
other arguments that can be used by implementing methods.
If inplace is TRUE, the function only has a side effect of setting the parameters of the model object in the calling environment; otherwise the function returns a modified copy of the model object.