Learn R Programming

mlr3misc (version 0.15.1)

named_list: Create a Named List

Description

Create a Named List

Usage

named_list(nn = character(0L), init = NULL)

Value

(named list()).

Arguments

nn

(character())
Names of new list.

init

(any)
All list elements are initialized to this value.

Examples

Run this code
named_list(c("a", "b"))
named_list(c("a", "b"), init = 1)

Run the code above in your browser using DataLab