powered by
Get and set indices: names of the array's dimensions. See also einstein.
einstein
index(x)index(x) <- value
index(x) <- value
array.
vector of indices.
array indices.
index: get indices.
index
index<-: set indices.
index<-
einstein, dim
dim
# 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