R/tools.R
add_class.Rd
Add a new class attribute
add_class(.obj, .class)
R object.
String with the desired class name.
Input object with additional class .class.
.class
tmp <- "abc" class(tmp) tmp <- immunarch:::add_class(tmp, "new_class") class(tmp)