Method for merging two lists by name
merge.list.RdThis is a method that merges the contents of one list with another by adding the named elements in the second that are not in the first. In other words, the first list is the target template, and the second one adds any extra elements that it has.
Value
A named list whose name set is the union of the elements in names of x and y and whose values are those taken from y and then with those in x, overwriting if necessary.
References
Curl homepage https://curl.se/
Examples
if (FALSE) { # \dontrun{
# Not exported.
merge.list(list(a=1, b = "xyz", c = function(x, y) {x+y}),
list(a = 2, z = "a string"))
# No values in y
merge.list(list(a=1, b = "xyz", c = function(x, y) {x+y}), list())
# No values in x
merge.list(list(), list(a=1, b = "xyz", c = function(x, y) {x+y}))
} # }