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

nc(...)

Arguments

...

Vector elements, possibly named

Value

A named vector.

References

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

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

a <- 1; b <- 2; c <- 3 nc(a, b, d=c)
#> `nc()` is deprecated, use `tibble::lst()` instead.
#> a b d #> 1 2 3
nc(mean(c(a, b, c)))
#> mean(c(a, b, c)) #> 2