named_list: Create a Named List

View source: R/named_list.R

named_listR Documentation

Create a Named List

Description

Create a Named List

Usage

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

Arguments

nn

(character())
Names of new list.

init

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

Value

(named list()).

Examples

named_list(c("a", "b"))
named_list(c("a", "b"), init = 1)

mlr-org/mlr3misc documentation built on Feb. 10, 2025, 12:48 p.m.