Set class of an object. Optionally append or prepend to exiting class
attributes. add_class
is short for set_class(x, class, "prepend")
.
strip_class
removes matching class strings from the class attribute vector.
Usage
set_class(x, class, add = c("overwrite", "prepend", "append"))
add_class(x, class)
strip_class(x, class)