sccore (version 0.1.2)

sn: Set names equal to values, a stats::setNames wrapper function

Description

Set names equal to values, a stats::setNames wrapper function

Usage

sn(x)

Arguments

x

an object for which names attribute will be meaningful

Value

An object with names assigned equal to values

Examples

Run this code
# NOT RUN {
vec = c(1, 2, 3, 4)
sn(vec)

# }

Run the code above in your browser using DataCamp Workspace