setattr(obj, "class", CLASS)
); can add instead of replacecl
by replacing or adding
setclass(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