

   attributes {base}                            R Documentation

   OObbjjeecctt AAttttrriibbuuttee LLiissttss

   DDeessccrriippttiioonn::

        This function 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.

   UUssaaggee::

        attributes(obj)
        attributes(obj) <- list

   SSeeee AAllssoo::

        `attr'.

   EExxaammpplleess::

        x <- cbind(a=1:3, pi=pi) # simple matrix w/ dimnames
        attributes(x)

        # strip an objects attributes:
        attributes(x) <- NULL
        x # now just a vector of length 6

