实例 R 语言 访问数组的项

x
 
thisarray <- c(1:24)
multiarray <- array(thisarray, dim = c(4, 3, 2))
multiarray[2, 3, 2]
                    

输出结果

[1] 22