nested_list: Crease nested lists.

Description Usage Arguments Value Author(s) Examples

Description

Create deeply nested list and initialize the values at the lowest level.

Usage

1
nested_list(len, fill = NA)

Arguments

len

A integer vector indicating the number of lists a different hierarchical levels of the nested list. For instance, len = c(2, 3) produces a nested list with 2 lists at the first level and 3 at the second level, i.e., 2 * 3 entries in total.

fill

Value to fill in at the lowest hierarchical level.

Value

A nested list initialized with fill.

Author(s)

Dominik Mueller (dominikmueller64@yahoo.de)

Examples

1
nested_list(len = c(2, 4, 3), fill = NA)

DominikMueller64/dmisc documentation built on May 6, 2019, 2:52 p.m.