View source: R/aclassesEnums.R
GenericEnumValue | R Documentation |
When an enumeration is defined in with no name, such as
enum {A, B, C}
, then we do not generate a
class in R corresponding to this type.
Instead, we just create the R variables
corresponding to the individual enmeration
elements/symbols and we identify them
as being of class EnumValue-class
.
This function creates such an instance.
It can also be used to create an instance of
a particular class of EnumValue-class
.
GenericEnumValue(name, val, class = "EnumValue", S3 = FALSE)
name |
the symbolic name for the constant |
val |
the numeric value for the constant |
class |
the specific class for the enumeration type and collection. |
S3 |
currently ignored. Related to using S3 classes. |
An object of a class derived from class
, typically
specific to the enumeration type.
Duncan Temple Lang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.