updateList: Update elements of a named list with elements of a second named list
Description
Merge two named list based on their named entries. Where
any element matches in both lists, the value from the
second list is used in the updated list.
Subelements are not examined and are simply replaced.
Usage
updateList(x, y)
## S3 method for class 'list,list':
updateList(x, y)
## S3 method for class '`NULL`,list':
updateList(x, y)
## S3 method for class 'list,`NULL`':
updateList(x, y)
## S3 method for class '`NULL`,`NULL`':
updateList(x, y)
Arguments
x
a named list
y
a named list
Value
A named list, with elements sorted by name.
The values of matching elements in list y
replace the values in list x.