Similary to unlist()
recursively unpacks any (possibly nested) structure
into a flat list. In contrast to unlist()
, unpack()
also works with
(possibly nested) Container()
objects. In principle, it works for any
object that can be transformed to a list via as.list
.
unpack(x, recursive = TRUE, use.names = TRUE)
a list
any R
object
logical
descend recursively into nested objects?
logical
Should names be preserved?