element: Extract Elements of an Array

Description Usage Arguments Author(s) See Also Examples

Description

Returns the element of x specified by i.

Usage

1
element(x, i)

Arguments

x

Array of arbitrary dimensionality.

i

Vector of the same length as x has dimension.

Author(s)

Friedrich Leisch

See Also

Extract

Examples

1
2
x <- array(1:20, dim=c(2,5,2))
element(x, c(1,4,2))


Search within the e1071 package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.