powered by
Simple wrapper for class(x) = classes.
class(x) = classes
set_class(x, classes)
Object x, with updated class attribute.
x
(any).
any
(character(1)) Vector of new class names.
character(1)
set_class(list(), c("foo1", "foo2"))
Run the code above in your browser using DataLab