nc {kimisc}R Documentation

Smart named vector

Description

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

Usage

nc(...)

Arguments

...

Vector elements, possibly named

Value

A named vector.

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

c, nlist

Examples

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

[Package kimisc version 0.2-1 Index]