Yes, I was thinking more in terms of mental operations than physical. I think the following works, but it doesn't seem entirely transparent :-)
Given array A, and a vector of row indices v (ie 1 <= v <= dim(A)[1]), the slice of rows v is A[ outer(v, dim(A)[1]*( 1:prod(dim(A)[-1])-1 ), '+') ] Steve Lianoglou-6 wrote: > > You actually don't have to convert A to a vector, you can use vector- > style indexing into a matrix: > -- View this message in context: http://www.nabble.com/array-slice-notation--tp24814643p24815116.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.