DIM()
R/utils.R
ndim.Rd
Returns the number of dimensions, or 1 for an atomic vector.
ndim(x)
a matrix or atomic vector