combine_lists: Combine Lists

Description Usage Arguments Value Examples

View source: R/miscutils.R

Description

combine multiple successive lists together

Usage

1

Arguments

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)

Value

a single list with all the elements appearing in the input lists

Examples

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)

duncankmckinnon/OKdplyr documentation built on Nov. 30, 2020, 1:13 a.m.