drop(x)
x
but with dead dimensions dropped.
In other words, any ones in
dim(x)
are deleted, and
dimnames(x)
is adjusted appropriately.
Dead dimensions are dropped automatically when
arrays are subscripted, unless
drop=FALSE
is used (see
Subscript
).
# if x is an n by 1 matrix, with n large, you # can look at it more easily with drop(x)