Learn R Programming

assertive (version 0.2-1)

merge.list: Merge two lists

Description

Merges two lists, taking duplicated elements from the first list.

Usage

## S3 method for class 'list':
merge(x, y, ...)

Arguments

x
A list.
y
A list.
...
Ignored.

Value

  • A list, combining elements from x and y.

See Also

merge_dots_with_list, merge

Examples

Run this code
merge(
  list(foo = 1, bar = 2, baz = 3),
  list(foo = 4, baz = 5, quux = 6)
)

Run the code above in your browser using DataLab