merge_lists: For a list of many sublists each of which has matrices as its...

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

For a list of many sublists each of which has matrices as its member, we combine across the many sublists to produce a final list

Usage

1
merge_lists(list_of_lists)

Arguments

list_of_lists

a list of sublists

Value

a list after merge

See Also

Other data operation functions: combine_data_nplcm(), subset_data_nplcm_by_index()

Examples

1
2
3
4
5
6
7
8
9
DT1 = list(A=1:3,B=letters[1:3])
DT2 = list(A=4:5,B=letters[4:5])
DT3 = list(A=1:4,B=letters[1:4])
DT4 = list(A=4:7,B=letters[4:7])
l = list(DT1,DT2);names(l) <- c("haha","hihi")
l2 = list(DT3,DT4);names(l2) <- c("haha","hihi")
listoflists <- list(l,l2);names(listoflists) <- c("dude1","dude2")
listoflists
merge_lists(listoflists)

baker documentation built on Feb. 2, 2022, 9:06 a.m.