mergeLists: Merge Lists Overriding Elements of the Same Name

View source: R/mergeArgs.R

mergeListsR Documentation

Merge Lists Overriding Elements of the Same Name

Description

Merge Lists Overriding Elements of the Same Name

Usage

mergeLists(..., warn.on.NULL = TRUE)

Arguments

...

lists

warn.on.NULL

if TRUE (default) a warning is given if any of the arguments given to this function is NULL

Value

list containing the elements given in ...

See Also

arglist

Examples

# merge two lists with different elements
mergeLists(list(a = 1), list(b = 2))

# merge two lists with one element of the same name: override element "b"
mergeLists(list(a = 1, b = 2), list(b = 3, c = 4))


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.