Drop | R Documentation |
Like drop(x) but only dropping specified dimensions. There is no testing that the specified dimensions are actually singletons.
Drop(x, d)
x |
array of at least d dimensions |
d |
dimension(s) to drop |
array x
x = array(1:4, dim=c(1, 2, 1, 2))
dx = MAST:::Drop(x, 1)
stopifnot(all(dim(dx)==c(2,1,2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.