unpack: Unpack Nested Objects

View source: R/unpack.R

unpackR 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


container documentation built on Dec. 11, 2022, 5:19 p.m.