Rev 27712 | 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 ofan \R object.}\usage{unname(obj, force = FALSE)}\arguments{\item{obj}{the \R object which is wanted \dQuote{nameless}.}\item{force}{logical; if true, the \code{dimnames} are even removedfrom \code{\link{data.frame}}s.\emph{This argument is currently \bold{experimental} and hencemight 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)))z <- table(breaks)z[1:5] # The names are larger than the data ...barplot(unname(z), axes= FALSE)}\keyword{utilities}