Skip to content
Prev 138524 / 398506 Next

How to make a 2-dim array being "interpreted" as an array rather than as a matrix

One more note:
Maybe try?

a3 <- structure(1:10, dim = c(2,5), class = "array")

Then class(a3) gives "array", and is.matrix and is.array are both still 
TRUE.

Erik