Swaps values and names of a vector.

invert_names(value)

Arguments

value

[named vector()]
Named vector with elements that should be coercible to a character vector, preferably strings.

Value

A character vector.