Learn R Programming

e1071 (version 1.7-7)

element: Extract Elements of an Array

Description

Returns the element of x specified by i.

Usage

element(x, i)

Arguments

x

Array of arbitrary dimensionality.

i

Vector of the same length as x has dimension.

See Also

Extract

Examples

Run this code
# NOT RUN {
x <- array(1:20, dim=c(2,5,2))
element(x, c(1,4,2))
# }

Run the code above in your browser using DataLab