Skip to contents

Invert a character list

Usage

invert_list(obj)

Arguments

obj

list object

Value

The list object, with values and names inverted.

Examples

invert_list(list(a = "b"))
#> $b
#> [1] "a"
#>