运行 ❯
获得您
自己的
网站
×
更改方向
更改主题,深色/浅色
转至 Spaces
thisarray <- c(1:24) # Access all the items from the first row from matrix one multiarray <- array(thisarray, dim = c(4, 3, 2)) multiarray[c(1),,1] # Access all the items from the first column from matrix one multiarray <- array(thisarray, dim = c(4, 3, 2)) multiarray[,c(1),1]
[1] 1 5 9
[1] 1 2 3 4