inherits_test | R Documentation |
Check class of object
inherits_test(x, cl)
x |
Object to check |
cl |
Character: class to check against |
Logical
EDG
## Not run:
inherits_check("papaya", "character") # TRUE
inherits_check(c(1, 2.5, 3.2), "integer") # FALSE
inherits_check(iris, "list") # FALSE, compare to is_check(iris, is.list)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.