index

0th

Percentile

Einstein Notation Indices

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

Aliases
  • index
  • index<-
Examples
# 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)

# }
Documentation reproduced from package calculus, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.