powered by
Swap names and values of a vector. Non-character values are implicitly converted to names.
swap_names_vals(x)
named vector
vector, with values being the names of the input vector, and names being the previous values.