create_list: Create a list of named lists

Description Usage Arguments Value Examples

View source: R/create_list.R

Description

Use create_list to create a list of named lists, each of length list.lengths.

Usage

1
create_list(list.names, list.lengths)

Arguments

list.names

a string vector containing list names

list.lengths

a numeric value that determines the length of each list.names list

Value

Returns a list of named lists, each of length list.lengths.

Examples

1
2
# Generate lists, each of length 4
create_list(c("a", "b", "c"), 4)

Example output

$a
$a[[1]]
NULL

$a[[2]]
NULL

$a[[3]]
NULL

$a[[4]]
NULL


$b
$b[[1]]
NULL

$b[[2]]
NULL

$b[[3]]
NULL

$b[[4]]
NULL


$c
$c[[1]]
NULL

$c[[2]]
NULL

$c[[3]]
NULL

$c[[4]]
NULL

dtables documentation built on May 1, 2019, 6:48 p.m.