Learn R Programming

kimisc (version 1.0.0)

nc-deprecated: 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(...)

Value

A named vector.

Arguments

...

Vector elements, possibly named

Author

Hadley Wickham

References

https://stackoverflow.com/a/5043280/946850

See Also

c(), nlist()

Other deprecated functions: coalesce.na-deprecated, df_to_list-deprecated, hms.to.seconds-deprecated, kimisc-deprecated, list_to_df-deprecated, nlist-deprecated, ofactor-deprecated, sample.rows-deprecated, seconds.to.hms-deprecated, thisfile-deprecated, tll-deprecated, vswitch-deprecated

Examples

Run this code
a <- 1
b <- 2
c <- 3
nc(a, b, d = c)
nc(mean(c(a, b, c)))

Run the code above in your browser using DataLab