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