powered by
swap the names and values of a vector
swap_vecname(x)
swapped vector
vector without duplicated values
v <- c("a" = "A", "b" = "B", "c" = "C") swap_vecname(v)
Run the code above in your browser using DataLab