list_merge: Merge two lists and overwrite latter entries with former...

Description Usage Arguments Value Examples

Description

For example, list_merge(list(a = 1, b = 2), list(b = 3, c = 4)) will be list(a = 1, b = 3, c = 4).

Usage

1
list_merge(list1, list2)

Arguments

list1

list

list2

list

Value

the merged list.

Examples

1
2
3
stopifnot(identical(list_merge(list(a = 1, b = 2), list(b = 3, c = 4)),
                    list(a = 1, b = 3, c = 4)))
stopifnot(identical(list_merge(NULL, list(a = 1)), list(a = 1)))

robertzk/mungebits documentation built on May 27, 2019, 10:35 a.m.