Drop Length One Dimensions of an Array

DESCRIPTION:

Returns an array or vector with dimensions deleted that have only one level.

USAGE:

drop(x) 

REQUIRED ARGUMENTS:

x
an array.

VALUE:

an array with the same values as x but with dead dimensions dropped. In other words, any ones in dim(x) are deleted, and dimnames(x) is adjusted appropriately.

DETAILS:

Dead dimensions are dropped automatically when arrays are subscripted, unless drop=FALSE is used (see Subscript).

SEE ALSO:

, , .

EXAMPLES:

# if x is an n by 1 matrix, with n large, you 
#    can look at it more easily with 
drop(x)