add_class | R Documentation |
Add a new class to object in addition to existing classes
add_class(x, class, position = 1)
x |
object to add class to |
class |
string. class to add. |
position |
the position in which to add the class |
object 'x' but with new class added
x <- add_class(tibble::tibble(), "NEW", 1)
class(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.