| 1 |
\name{empty.dimnames} |
| 2 |
\alias{empty.dimnames} |
| 3 |
\title{Empty Dimnames of an Array} |
| 4 |
\description{ |
| 5 |
Remove all dimension names from an array for compact printing. |
| 6 |
} |
| 7 |
\usage{ |
| 8 |
empty.dimnames(a) |
| 9 |
} |
| 10 |
\arguments{ |
| 11 |
\item{a}{an \code{\link{array}}, i.e., as special case a matrix.} |
| 12 |
} |
| 13 |
\value{ |
| 14 |
Returns \code{a} with its dimnames replaced by empty character strings. |
| 15 |
} |
| 16 |
\author{Bill Venables / Martin Maechler, Sept 1993.} |
| 17 |
\seealso{\code{\link{unname}} \emph{removes} the dimnames.} |
| 18 |
\examples{ |
| 19 |
empty.dimnames(diag(5)) # looks much nicer |
| 20 |
|
| 21 |
(a <- matrix(-9:10, 4,5)) |
| 22 |
empty.dimnames(a) # nicer, right? |
| 23 |
} |
| 24 |
\keyword{array} |
| 25 |
\keyword{print} |
| 26 |
\keyword{utilities} |