namelist: Construct a list with automatic names

Description Usage Arguments Value Examples

View source: R/namelist.R

Description

Constructs a lists from its arguments, automatically naming each element of the list with the name of the argument.

Usage

1

Arguments

...

objects to add to the list.

Value

A list with named elements

Examples

1
2
3
4
5
x <- 3
y <- "a string"
z <- function(x){x^3 +4}
n <- namelist(x,y,z)
str(namelist)

sethmcg/climod documentation built on Nov. 19, 2021, 11:12 p.m.