EnumValue | R Documentation |
This generic function is used to create an instance of a
value from an enumeration constant definition type.
See EnumValue-class
for more information
about these named symbolic constants.
EnumValue(id, value, obj = new("EnumValue"))
id |
a string giving the symbolic name of the value. |
value |
the numeric value for this |
obj |
an instance of the class to be created.
This allows the caller to reuse this function with
for different derived classes of |
The value of the obj
argument with is .Data
slot
filled in with a named integer vector of length 1.
Duncan Temple Lang (duncan@r-project.org)
EnumValue-class
setAs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.