Learn R Programming

jwutil (version 1.2.3)

list_named: Make a list using input argument names as names

Description

Make a list using input argument names as names

Usage

list_named(...)

Arguments

...

arguments whose names become list item names, and whose values become the values in the list

Examples

Run this code
# NOT RUN {
a <- c(1, 2)
b <- c("c", "d")
stopifnot(
  identical(
    list_named(a, b),
    list(a = a, b = b)
  )
)
# }

Run the code above in your browser using DataLab