powered by
Return the value that is stored under the given key. If the key is not present, an error is thrown.
enumGetValue(enum, key)
The enum that contains the key-value pair.
enum
The key under which the value is stored.
key
Value that is assigned to key.
Other enumeration-helpers: enumGetKey(), enumHasKey(), enumKeys(), enumPut(), enumRemove(), enumValues(), enum()
enumGetKey()
enumHasKey()
enumKeys()
enumPut()
enumRemove()
enumValues()
enum()
# NOT RUN { Symbol <- enum(c(Diamond = 1, Triangle = 2, Circle = 2)) enumGetValue(Symbol, "Diamond") # }
Run the code above in your browser using DataLab