partUnlist {wrMisc} | R Documentation |
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, sep = "_", silent = FALSE, debug = FALSE, callFrom = NULL)
Arguments
lst |
(list) main input, list to be partially unlisted |
sep |
(character, length=1) separator for names |
silent |
(logical) suppress messages |
debug |
(logical) additional messages for debugging |
callFrom |
(character) allow easier tracking of messages produced |
Value
This function returns a list with partially reduced nested structure
See Also
Examples
partUnlist(list(list(a=11:12,b=21:24), list(c=101:101,d=201:204)))
li4 <- list(c=1:3, M2=matrix(1:4,ncol=2), L3=list(L1=11:12, M3=matrix(21:26,ncol=2)))
partUnlist(li4)
unlist(li4, rec=FALSE)
[Package wrMisc version 1.15.1 Index]