An array is a vector (atomic or list) that has the attributedim. This attribute is itself an (integer) vector that specifies the dimensions of the the array. Thus, the length of the dim vector also defines the number of dimensions of the vector.
Optional attribute dimnames
An array can also be assigned the optional attribute dimnames