Drop: Drop specified dimension from an array

Description Usage Arguments Value Examples

Description

Like drop(x) but only dropping specified dimensions. There is no testing that the specified dimensions are actually singletons.

Usage

1
Drop(x, d)

Arguments

x

array of at least d dimensions

d

dimension(s) to drop

Value

array x

Examples

1
2
3
x = array(1:4, dim=c(1, 2, 1, 2))
dx = MAST:::Drop(x, 1)
stopifnot(all(dim(dx)==c(2,1,2)))


Search within the MAST package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.