setClasses {BBmisc} | R Documentation |
class(x) = classes
.A wrapper for class(x) = classes
.
setClasses(x, classes)
x |
[any] |
classes |
[ |
Changed object x
.
setClasses(list(), c("foo1", "foo2"))
## list()
## attr(,"class")
## [1] "foo1" "foo2"