powered by
Test whether object has class Enum.
Enum
is.enum(x)
object to be tested
TRUE if x is an Enum, FALSE otherwise
TRUE
x
FALSE
# NOT RUN { HelloEnum <- Enum( "HelloEnum", Hello, World ) # TRUE is.enum(HelloEnum$Hello) # FALSE is.enum(5) # }
Run the code above in your browser using DataLab