Returns the element of x specified by i.

element(x, i)

Arguments

x

Array of arbitrary dimensionality.

i

Vector of the same length as x has dimension.

See also

Examples

x <- array(1:20, dim=c(2,5,2)) element(x, c(1,4,2))
#> [1] 17