Description Usage Arguments Value Examples
Test whether Enum
is also of class type
.
1 | is.enum_type(x, type, ...)
|
x |
object to be tested |
type |
character string denoting type to check. |
... |
objects passed to methods |
TRUE
if x
has enumerated type type
, FALSE
otherwise
1 2 3 4 5 6 7 8 9 10 11 | HelloEnum <- Enum(
"HelloEnum",
Hello,
World
)
# TRUE
is.enum_type(HelloEnum$Hello, "HelloEnum")
# FALSE
is.enum_type(HelloEnum$Hello, "Hello")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.