is.enum | R Documentation |
Test if object is inherited from class 'enum'. Moreover, the function checks if the object can be coerced to 'enum' and verifies if it is indeed a valid 'enum'.
is.enum(x)
x |
any 'R' object |
'TRUE' if object is a valid enum, otherwise 'FALSE'.
is.enum(enum(a = 1, b = 2)) # TRUE is.enum(c(a = 1, b = 2)) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.