| enumGetKey | R Documentation |
enumGet the key mapped to the given value in an enum
enumGetKey(enum, value) getEnumKey(enum, value)
enum |
The |
value |
The value that is mapped to the |
Key under which the value is stored. If the value is not in the enum,
NULL is returned.
Other enumeration-helpers:
enumGetValue(),
enumHasKey(),
enumKeys(),
enumPut(),
enumRemove(),
enumValues(),
enum()
Symbol <- enum(c(Diamond = 1, Triangle = 2, Circle = 2)) enumGetKey(Symbol, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.