Learn R Programming

wrMisc (version 1.2.3)

partUnlist: Partial unlist of lists of lists

Description

partUnlist does partial unlist for treating list of lists : New (returned) list has one level less of hierarchy (Highest level list will be appended). In case of conflicting (non-null) listnames a prefix will be added. Behaviour different to unlist when unlisting list of matrixes.

Usage

partUnlist(lst)

Arguments

lst

list to be partailly unlisted

Value

list with partially reduced nested structure

See Also

unlist, asSepList

Examples

Run this code
# NOT RUN {
partUnlist(list(list(a=11:12,b=21:24),list(c=101:101,d=201:204)))
li4 <- list(c=1:3,L2=matrix(1:4,ncol=2),li3=list(L1=11:12,L2=matrix(21:26,ncol=2)))
partUnlist(li4)
unlist(li4,rec=FALSE)
# }

Run the code above in your browser using DataLab