Skip to contents

Returns the axis indices of an array, i.e. seq_len(naxes(x)).

Usage

axes(x)

Arguments

x

(arrayish)
An array-like object.

Value

(integer())

See also

Examples

x <- nv_array(1:6, shape = c(2, 3))
axes(x)
#> [1] 1 2