setattr(obj, "class", CLASS)
); can add instead of replacesetattr(obj, "class", CLASS)
); can add instead of replacesetclass(obj, cl, add = FALSE, add.place = "first")
TRUE
, adds cl
to the
classes of the obj
; otherwise replaces the class information"first"
or "last"
; adds cl
to the front or to the back of the obj
's class vector