R/string_ops.R
invert_named.Rd
Invert a named vector
invert_named(x)
A named vector
A named vector with names and values inverted
invert_named(x = c(name = "element")) #> element #> "name" invert_named(x = c(element = "name")) #> name #> "element"