
Last chance! 50% off unlimited learning
Sale ends in
Get and set indices: names of the array's dimensions. See also einstein
.
index(x)index(x) <- value
array.
vector of indices.
array indices.
index
: get indices.
index<-
: set indices.
# NOT RUN {
# define array
a <- array(1, dim = c(1,3,2))
# get indices
index(a)
# set indices
index(a) <- c('i', 'j', 'k')
# get indices
index(a)
# dimensions
dim(a)
# }
Run the code above in your browser using DataLab