addClasses {BBmisc} | R Documentation |
A wrapper to add to the class attribute.
Description
A wrapper to add to the class attribute.
Usage
addClasses(x, classes)
Arguments
x |
[any] |
classes |
[ |
Value
Changed object x
.
Examples
x = list()
print(class(x))
x = addClasses(x, c("foo1", "foo2"))
print(class(x))
[Package BBmisc version 1.13 Index]