R/apr_shape.R
apr_shape.Rd
Retrieve the shape of an array
apr_shape()
an integer vector representing the dimensions
arr <- array(1:12, c(3, 2, 2)) apr_shape(arr) # Returns c(3, 2, 2) #> [1] 3 2 2