unpack {container}R Documentation

Unpack Nested Objects

Description

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.

Usage

unpack(x, recursive = TRUE, use.names = TRUE)

Arguments

x

any R object

recursive

logical descend recursively into nested objects?

use.names

logical Should names be preserved?

Value

a list


[Package container version 1.0.4 Index]