add_class.Rd
Add (S3) classes to an object
prepend_class(x, cls = character(0), null = list()) append_class(x, cls = character(0), null = list())
The object whose class is to be updated.
The class(es) to add.
If x is NULL, first replace it with this value, since NULL can't have a class.
x
NULL
The object with new class structure.
The new class vector will be uniquified, in left-to-right preferential order (so x,y,x,z becomes x,y,z).
x,y,x,z
x,y,z