This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/drop.html
drop {base}R Documentation

Drop Redundant Extent Information

Usage

drop(x)

Value

If x is an object with a dim attribute (e.g. a matrix or array), then drop, returns an object like x, but with any extents of length one removed. Any accompanying dimnames attribute is adjusted and returned with x.

Array subsetting typically performs this reduction, but sometimes it is useful to invoke drop directly.


[Package base version 0.60 ]