powered by
class(x) = classes
A wrapper for class(x) = classes.
setClasses(x, classes)
Changed object x.
x
[any] Your object.
[character] New classes.
character
setClasses(list(), c("foo1", "foo2"))
Run the code above in your browser using DataLab