switch_class replaces the first element of an object's class vector with the specified class. The object retains all other class memberships.
1 | switch_class(x, new.class)
|
x |
an object to be given a new class |
new.class |
a character string |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.