mergeLists {rube} | R Documentation |
This convenience functions takes two named lists, e.g., lists containing the varList elements for doBugs() and bugsCheck(), and merges them to include only the second argument's value(s) for duplicated elements, and also containing all non-duplicated elements of both lists.
mergeLists(list1, list2)
list1 |
Any named list |
list2 |
Any named list (given priority for duplicated elements) |
A named list containing the merged input.
Howard J. Seltman <hseltman@stat.cmu.edu>
http://www.stat.cmu.edu/~hseltman/rube
## Simple example returns list(A=3, B=4, C=5) mergeLists(list(A=3,B=3), list(B=4, C=5))