Rdocumentation
powered by
Learn R Programming
Dict (version 0.6)
invert: Inverts a dictionary
Description
Returns a dictionary where keys and values are swapped. Values are coerced to character keys, if needed.
Usage
invert(dict)
Arguments
dict
a dictionary
Value
a new dictionary with keys and values swapped