rray_elems: Compute the number of elements in an array
Description
rray_elems() computes the number of individual elements in an array. It
generally computes the same thing as length(), but has a more predictable
name.
# NOT RUN {rray_elems(1:5)
rray_elems(matrix(1, 2, 2))
# It is different from `vec_size()`,# which only returns the number of# observationslibrary(vctrs)
vec_size(matrix(1, 2, 2))
# }