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.
# NOT RUN {
dims(character(0))
dims(1:3)
dims(iris)
dims(Titanic)
dims(factor("a"))
# }
Run the code above in your browser using DataLab