Learn R Programming

dtables (version 0.2.0)

create_list: Create a list of named lists

Description

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

Usage

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

Run this code
# Generate lists, each of length 4
create_list(c("a", "b", "c"), 4)

Run the code above in your browser using DataLab