Add a new class attribute

add_class(.obj, .class)

Arguments

.obj

R object.

.class

String with the desired class name.

Value

Input object with additional class .class.

Developer Examples

tmp <- "abc" class(tmp) tmp <- immunarch:::add_class(tmp, "new_class") class(tmp)