enums | R Documentation |
Enumerated types are used in few places across the API. These are types that can have only a limited set of named constant values.
These functions facilitate the conversion between integer value and string representation.
map_enum2int(enum, name)
map_int2enum(enum, value)
enum |
name of the enumeration type: e.g. |
name |
string representation of |
value |
integer representation of |
map_enum2int
returns the corresponding value
.
map_int2enum
returns the corresponding name
.
map_enum2int("MarketData", "DELAYED") # -> 3
map_int2enum("MarketData", 3) # -> "DELAYED"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.