has_class | R Documentation |
A function to check if an input object has a specific class name.
has_class(.data, .class)
.data |
Any R object. |
.class |
Character vector. Specifies a class name to check against. |
Logical value.
tmp <- "abc" immunarch:::has_class(tmp, "new_class") tmp <- immunarch:::add_class(tmp, "new_class") immunarch:::has_class(tmp, "new_class")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.