has_class | R Documentation |
Utility function to see if an object has a particular class. Useful when we don't know how many other classes the object may have.
has_class(x, cls)
x |
the object we want to check the class of. |
cls |
the class we want to know if it has or not. |
TRUE
if the object has the class.
FALSE
if the object does not have the class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.