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