Copy the attributes from one S3 object to another. Necessary when some operation defined for the base class obliterates them.
reassign_attributes(x_new, x_from, exceptions = NULL, attr_only = FALSE)
attr_only = TRUE
TRUE
, then x_orig
is a list of
attributes rather than an object with attributes.