\Header{drop}{Drop Redundant Extent Information}
\keyword{array}{drop}
\begin{Usage}
\begin{verbatim}
drop(x)
\end{verbatim}
\end{Usage}
\begin{Value}
If \texttt{x} is an object with a \texttt{dim} attribute
(e.g. a matrix or array), then \texttt{drop}, returns
an object like \texttt{x}, but with any extents of length
one removed.  Any accompanying \texttt{dimnames} attribute
is adjusted and returned with \texttt{x}.

Array subsetting typically performs this reduction,
but sometimes it is useful to invoke \texttt{drop} directly.\end{Value}
\begin{SeeAlso}
\texttt{\Link{drop1}} which is used for dropping terms in models.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
dim(drop(array(1:12, dim=c(1,3,1,1,2,1,2))))# = 3 2 2
\end{ExampleCode}
\end{Examples}

