list.join | R Documentation |
Join two lists by single or multiple keys
list.join(x, y, xkey, ykey, ..., keep.order = TRUE)
x |
The first list |
y |
The second list |
xkey |
A lambda expression that determines the key for list |
ykey |
A lambda expression that determines the key for list |
... |
The additional parameters passed to |
keep.order |
Should the order of |
l1 <- list(p1=list(name='Ken',age=20), p2=list(name='James',age=21), p3=list(name='Jenny',age=20)) l2 <- list(p1=list(name='Jenny',age=20,type='A'), p2=list(name='Ken',age=20,type='B'), p3=list(name='James',age=22,type='A')) list.join(l1, l2, name) list.join(l1, l2, .[c('name','age')])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.