powered by
Set names equal to values, a stats::setNames wrapper function
sn(x)
An object with names assigned equal to values
an object for which names attribute will be meaningful
vec = c(1, 2, 3, 4) sn(vec)
Run the code above in your browser using DataLab