has_class | R Documentation |
This function checks whether object is a specific class
has_class(x, class)
x |
A value to check. |
class |
checks if |
A logical scalar indicating x
belongs to class
if(interactive()) {
has_class(1, "numeric") # TRUE
has_class(1, "character") # FALSE
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.