I am working on some data in R that consist of four-dimensional arrays composed of three spatial dimensions and a time dimension: x, y, z, t. For some of my analyses, I woul
I'm probably missing something, but don't you simply want a4d[indices[,1],indices[,2],indices[,3],]?
a4d[indices[,1],indices[,2],indices[,3],]