

   drop {base}                                  R Documentation

   DDrroopp RReedduunnddaanntt EExxtteenntt IInnffoorrmmaattiioonn

   UUssaaggee::

        drop(x)

   VVaalluuee::

        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 (`[') performs this reduction unless
        used with `drop = FALSE', but sometimes it is useful to
        invoke `drop' directly.

   SSeeee AAllssoo::

        `drop1' which is used for dropping terms in models.

   EExxaammpplleess::

        dim(drop(array(1:12, dim=c(1,3,1,1,2,1,2))))# = 3 2 2
        drop(1:3 %*% 2:4)# scalar product

