combine_named_lists: Combine two named lists

Description Usage Arguments Examples

View source: R/utils.R

Description

Combine two named lists

Usage

1

Arguments

x, y

a named list. All the elements must be uniquely named.

replace

a logical value, default as TRUE. If TRUE, all the 'x' elements with names that exist in the 'y' list will be replaced with the values in 'y'.

Examples

1
2
3
x <- list(x = 1, y = 2)
y <- list(x = 2)
combine_named_lists(x, y, FALSE)

asiripanich/emdash documentation built on Sept. 23, 2021, 7:20 p.m.