x y z

a 1, 2, 3

b 4, 5, 6

I’m not well versed enough to understand entirely what happens if we call aperm() with the argument perm = NULL, but it looks like the output you got is slightly different from what the exercise asked us to do.

I tried this instead, and it seems to work for exercise 5:

dnam <- list(c('a', 'b', 'c', 'd'), c('A', 'B'), c('D1', 'D2', 'D3'))

rarr2 <- array(1:24, dim = c(4, 2, 3),

dimnames = dnam)

rarr3 <- aperm(rarr2, perm = c(2, 1, 3))

I hope this helps someone!

]]>could you please provide solutions for this exercise. i am stuck with questions 9-12 ]]>

My multi-dimentional array has the dimensions 3*2*4, which I assume corresponds to row*column*height as per E#9. Therefore E#10 and E#11 don’t work, since your number of columns is 2.

Please let me know if I’m misinterpreting this. Thanks!

]]>