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