Gets the dimensions of an object.
dims(x, ...)
# S3 method for default
dims(x, ...)
# S3 method for factor
dims(x, ...)
An object.
Other arguments passed to methods.
An integer vector of the dimensions.
Unlike base::dim()
, dims returns the length of an atomic vector.