EnumDef: Define a collection of related constants

View source: R/aclassesEnums.R

EnumDefR Documentation

Define a collection of related constants

Description

This function and associated class allow us to define an enumerated constant type in R that specifies the names and integer values for the symbolic constants.

Usage

EnumDef(name, values, symbolicNames = names(values))

Arguments

name

name of the enumeration group

values

the values of the individual elements of the enumeration group. This is typically a named integer vector where the names are the symbolic names to be used.

symbolicNames

the symbolic names for the values. This parallels the values vector.

Author(s)

Duncan Temple Lang

See Also

BitwiseValue


omegahat/RAutoGenRunTime documentation built on Jan. 12, 2023, 9:19 p.m.