Skip to contents

Retrieve the shape of an array

Usage

apr_shape()

Value

an integer vector representing the dimensions

Examples

arr <- array(1:12, c(3, 2, 2))
apr_shape(arr)  # Returns c(3, 2, 2)
#> [1] 3 2 2