merge_lists function

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

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

merge_lists(list_of_lists)

Arguments

  • list_of_lists: a list of sublists

Returns

a list after merge

Examples

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)

See Also

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

  • Maintainer: Zhenke Wu
  • License: MIT + file LICENSE
  • Last published: 2024-01-30