[Solved] R three dimensional arrays [closed]


So the way your question is posed is a bit sloppy, but an example of what you might be trying to do is to take the average of each 2000 x 22 array for each of the 3 of them. here is how this would be done:

arr = array(1, dim=c(2000,22,3))
dim(arr)

m = NULL
dim3 = 3
for(d3 in 1:dim3){
    m[d3] = mean(arr[,,d3]) 
}

1

solved R three dimensional arrays [closed]