\Header{attr}{Object Attributes}
\alias{attr$\leftarrow $}{attr}
\keyword{attribute}{attr}
\begin{Usage}
\begin{verbatim}
attr(x, which)
attr(x, which) <- value
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{x}] an object whose attributes are to be accessed.
\item[\texttt{which}] a character string specifying which attribute is to be accessed.
\end{ldescription}
\end{Arguments}
\begin{Value}
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.\end{Value}
\begin{SeeAlso}
\texttt{\Link{attributes}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
# create a 2 by 5 matrix
x <- 1:10
attr(x,"dim") <- c(2,5)
\end{ExampleCode}
\end{Examples}

