array_extract: Array extract

Description Usage Arguments Value Examples

View source: R/array.R

Description

Extract dimensions from an array

Usage

1
array_extract(arr, ..., default = "1")

Arguments

arr

An array

...

A named list by array dimension number and the value

default

The default dimension index

Value

A value from the array arr

Examples

1
2
3
4
5
x <- array(rep(NA, 27), dim = c(3, 3, 3))
x[1, 2, 3] <- TRUE
x[1, 2, 3]
x
array_extract(x, `2` = 2, `3` = 3)

mark documentation built on July 16, 2021, 9:07 a.m.