S3-Methods: General S3 Methods for Enums

Description Usage Arguments

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S3 method for class 'enum'
length(x)

## S3 method for class 'enum'
names(x)

## S3 method for class 'enum'
as.list(x, ...)

## S3 method for class 'enum'
as.character(x, ...)

## S3 method for class 'enum'
as.numeric(x, ...)

## S3 method for class 'enum'
as.data.frame(x, ...)

Arguments

x

enum

...

arguments to pass to as.list


ElianHugh/enumr documentation built on Dec. 17, 2021, 6:25 p.m.