Various S3 methods that improve interacting with enum data types.
These rely on coercing enums to list types before applying any methods to the enum.
# S3 method for enum length(x) # S3 method for enum names(x) # S3 method for enum as.list(x, ...) # S3 method for enum as.character(x, ...) # S3 method for enum as.numeric(x, ...) # S3 method for enum as.data.frame(x, ...)
x | enum |
---|---|
... | arguments to pass to as.list |