

   OObbjjeecctt AAttttrriibbuutteess

        attr(obj, which)
        attr(obj, which) <- value

   AArrgguummeennttss::

        obj: an object whose attributes are to be accessed.

      which: a character string specifying which attribute is
             to be accessed.

   VVaalluuee::

        This function provides access to a single object
        attribute.  The simple form above returns the value of
        the named attribute.  The assignment form causes the
        named attribute to take the value on the right of the
        assignment symbol.

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

        `attributes'

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

        # create a 2 by 5 matrix
        x <- 1:10
        attr(x,"dim") <- c(2,5)

