is_class | R Documentation |
Tests if an object is of a given class
is_class(x, name = NULL)
x |
an R object |
name |
string giving the class to be tested |
is_class("test_me", "character") # TRUE
is_class(1:10, "numeric") # TRUE
y = 'hello'
class(y) = "hello"
is_class(y, 'hello')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.