Making enums

Functions that create enums

enum()

Create a new enumeration

as_enum()

Coerce lists, environments, and factors to enumerations

new_numeric_enum() new_generic_enum()

Enum constructors

enum-class

enum class

Validating enums

Functions that validate the structure of enums

validate_enum_definition() validate_numeric_enum() validate_generic_enum()

Enum Validator

Type checking

Functions that assist in type checking enums

is_enum() is_numeric_enum() is_generic_enum()

Test object inheritance

Enum()

Enum assertion type checking

S3 methods

Functions defined for S3 dispatch

`[`(<enum>) `[[`(<enum>) `$`(<enum>) `$<-`(<enum>) `[<-`(<enum>) `[[<-`(<enum>)

Subsetting enums

print(<enum>)

Printing enums

length(<enum>) names(<enum>) as.list(<enum>) as.character(<enum>) as.numeric(<enum>) as.data.frame(<enum>)

General S3 Methods for Enums