How to index a multidimensional R array dynamically?

前端 未结 3 385
我寻月下人不归
我寻月下人不归 2021-01-20 12:52

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

3条回答
  •  礼貌的吻别
    2021-01-20 13:12

    I'm probably missing something, but don't you simply want a4d[indices[,1],indices[,2],indices[,3],]?

提交回复
热议问题