The R Project SVN R

Rev

Rev 7132 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

 \name{unname}
\alias{unname}
\title{Remove `names' or `dimnames'}
\description{
Remove the \code{\link{names}} or \code{\link{dimnames}} attribute of an
\R object.
}
\usage{
unname(obj, force=FALSE)
}
\arguments{
 \item{obj}{The \R object which is wanted ``nameless''}
 \item{force}{logical; if true, the \code{dimnames} are even removed
     from \code{\link{data.frame}}s.
     \emph{This argument is currently \bold{experimental} and hence
     might change!}}
}
\value{
    Object as \code{obj} but without \code{\link{names}} or
    \code{\link{dimnames}}.
}
\examples{
## Answering a question on R-help (14 Oct 1999):
col3 <- 750+ 100* rt(1500, df = 3)
breaks <- factor(cut(col3,breaks=360+5*(0:155)))
str(table(breaks)) ## The names are quite larger than the data..
barplot(unname(table(breaks)), axes= FALSE)
}
\keyword{utilities}%-- one or more ...