swap_vecname {baizer}R Documentation

swap the names and values of a vector

Description

swap the names and values of a vector

Usage

swap_vecname(x)

Arguments

x

vector without duplicated values

Value

swapped vector

Examples

v <- c("a" = "A", "b" = "B", "c" = "C")
swap_vecname(v)


[Package baizer version 0.8.0 Index]