Skip to contents

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

Hadley Wickham

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