Rev 6228 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{drop}\title{Drop Redundant Extent Information}\usage{drop(x)}\alias{drop}\value{If \code{x} is an object with a \code{dim} attribute(e.g. a matrix or \code{\link{array}}), then \code{drop} returnsan object like \code{x}, but with any extents of lengthone removed. Any accompanying \code{dimnames} attributeis adjusted and returned with \code{x}.Array subsetting (\code{\link{[}}) performs this reduction unless usedwith \code{drop = FALSE}, but sometimes it is useful to invoke\code{drop} directly.}\seealso{\code{\link{drop1}} which is used for dropping terms in models.}\examples{dim(drop(array(1:12, dim=c(1,3,1,1,2,1,2))))# = 3 2 2drop(1:3 \%*\% 2:4)# scalar product}\keyword{array}