check-scalar-isAny | R Documentation |
Does the object belong to or inherit any of these classes?
isAny(x, classes)
x |
Object. |
classes |
|
TRUE
on success;
FALSE
on failure, with cause set.
Updated 2019-10-04.
x <- 1L
## TRUE ====
isAny(x, classes = c("integer", "NULL"))
isAny(x, classes = c("numeric", "NULL"))
isAny(x, classes = c("atomic", "NULL"))
## FALSE ====
isAny(x, classes = c("character", "data.frame"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.