
Last chance! 50% off unlimited learning
Sale ends in
slice.index(x, MARGIN)
x
has no dimension attribute, it is
considered a one-dimensional array.y
with dimensions corresponding to those of
x
such that all elements of slice number i
with respect
to dimension MARGIN
have value i
.row
and col
for determining row and column
indexes; in fact, these are special cases of slice.index
corresponding to MARGIN
equal to 1 and 2, respectively when x
is a matrix.x <- array(1 : 24, c(2, 3, 4))
slice.index(x, 2)
Run the code above in your browser using DataLab