Set model parameters from a named list

PCMParamSetByName(model, params, inplace = TRUE,
  replaceWholeParameters = FALSE, ...)

Arguments

model

a PCM model object

params

a named list with elements among the names found in model

inplace

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.

replaceWholeParameters

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).

...

other arguments that can be used by implementing methods.

Value

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.