setParams: Merge the parameters from a partial list and the default list

Description Usage Arguments Value Author(s) See Also

View source: R/defaultSC.R

Description

Merge the parameters from a partial list and the default list

Usage

1
setParams(opts, defaultOpt, keepNotMatching = FALSE)

Arguments

opts

a partial list of parameters

defaultOpt

a list with default values for every element

keepNotMatching

[FALSE] if TRUE, copy the elements appearing in opts, but not in defaultOpt to the return value. If FALSE, do not copy them, but issue a warning.

Value

a list combined from opts and defaultOpt where every available element in opts overrides the default. For the rest of the elements the value from defaultOpt is taken.
A warning is issued for every element appearing in opts but not in defaultOpt (only if keepNotMatching==FALSE).

Author(s)

Wolfgang Konen (wolfgang.konen@th-koeln.de), Samineh Bagheri

See Also

defaultSC, defaultOpts


TDMR documentation built on March 3, 2020, 1:06 a.m.