updateParVals: Insert par.vals to old ones with meeting requirements

View source: R/updateParVals.R

updateParValsR Documentation

Insert par.vals to old ones with meeting requirements

Description

Update the values of a given parameter setting with a new parameter setting. Settings that do not meet the requirements anymore will be deleted from the first given parameter setting. Default values of the Param Set are respected to check if the new param settings meet the requirements.

Usage

updateParVals(par.set, old.par.vals, new.par.vals, warn = FALSE)

Arguments

par.set

ParamSet
Parameter set.

old.par.vals

list
Param Values to be updated.

new.par.vals

list
New Param Values to update the old.par.vals.

warn

logical
Whether a warning should be shown, if a param setting from old.par.vals is dropped. Default is FALSE.

Value

list.


ParamHelpers documentation built on July 4, 2022, 5:07 p.m.