nlist: Smart named list

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/nlist.R

Description

This function is a wrapper around list that assigns names to unnamed arguments based on the unevaluated expression used in the call.

Usage

1

Arguments

...

List items, possibly named

Value

A named list.

Author(s)

Hadley Wickham

References

http://stackoverflow.com/a/5043280/946850, http://tolstoy.newcastle.edu.au/R/e9/help/10/03/8392.html

See Also

list

Examples

1
2
3
a <- 1; b <- 2; c <- 3
nlist(a, b, d=c)
nlist(mean(c(a, b, c)))

kimisc documentation built on May 2, 2019, 6:09 p.m.