Rev 2 | Rev 1368 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{attr}\title{Object Attributes}\usage{attr(obj, which)attr(obj, which) <- value}\alias{attr}\arguments{\item{obj}{an object whose attributes are to be accessed.}\item{which}{a character string specifying which attribute is to be accessed.}}\value{This function provides access to a single object attribute. The simpleform above returns the value of the named attribute. The assignmentform causes the named attribute to take the value on the right ofthe assignment symbol.}\seealso{\code{\link{attributes}}}\examples{# create a 2 by 5 matrixx <- 1:10attr(x,"dim") <- c(2,5)}\keyword{attribute}