merge.list | R Documentation |
Merges two lists, appending the second to the first. Expects that all
elements are named and that within a list, all names are unique. If the same
name is used in both lists, the element (value) from the second list is kept,
the one from the first list is dropped. That results in the order of elements
in the merged list being different. If keepOrder = TRUE
is set, then
the order of elements in the first list is kept with the duplicated elements
from the second dropped.
## S3 method for class 'list'
merge(x, y, keepOrder = FALSE, ...)
x |
A list |
y |
Another list |
keepOrder |
How to order the list when duplicates occur: by default
this is FALSE, with duplicates dropped from |
... |
Required for generic method. Not used. |
A list consisting of all elements from x
not also in y
,
and then all elements in y
, or
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.