calculus (version 0.1.0)

index: Einstein Notation Indices

Description

Get and set indices: names of the array's dimensions. See also einstein.

Usage

index(x)

index(x) <- value

Arguments

x

array.

value

vector of indices.

Value

array indices.

Functions

  • index: get indices.

  • index<-: set indices.

See Also

einstein, dim

Examples

Run this code
# 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