Description Usage Arguments Value Examples
combine multiple successive lists together
1 | combine_lists(l1, ..., merge = FALSE)
|
l1 |
a starting list |
... |
a list or lists to combine |
merge |
should matching list elements be merged together or overridden by latest list (default=FALSE) |
a single list with all the elements appearing in the input lists
1 2 3 4 5 6 7 | L1 <- list(a = 1:10, b=11:20)
L2 <- list(c = 21:30, d=31:40)
L3 <- list(e = 41:50, a=51:60)
L4 <- combine_lists(L1, L2)
L5 <- combine_lists(L1, L2, L3)
L6 <- combine_lists(L3, L4, L5, L1)
L7 <- combine_lists(L1, L2, L3, merge=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.