attributes(obj) attributes(obj) <- list
attributes provides access to an object's attribute list.
The simple form above returns the an object's attribute list.
The assignment form makes the list on the right-hand
side of the assignment, the object's attribute list.
Examples
# strip an objects attributes
attributes(x) <- null