powered by
Like drop(x) but only dropping specified dimensions. There is no testing that the specified dimensions are actually singletons.
Drop(x, d)
array of at least d dimensions
dimension(s) to drop
array x
# NOT RUN { x = array(1:4, dim=c(1, 2, 1, 2)) dx = Drop(x, 1) stopifnot(all(dim(dx)==c(2,1,2))) # }
Run the code above in your browser using DataLab