dims | R Documentation |
Gets the dimensions of an object.
dims(x, ...) ## Default S3 method: dims(x, ...) ## S3 method for class 'factor' dims(x, ...)
x |
An object. |
... |
Other arguments passed to methods. |
Unlike base::dim()
, dims returns the length of an atomic vector.
An integer vector of the dimensions.
base::dim()
Other dimensions:
ndims()
,
npdims()
,
pdims()
dims(numeric(0)) dims(1:3) dims(factor("a")) dims(matrix(1:4, nrow = 2L)) dims(array(1:9, dim = c(3L,1L,3L))) dims(ToothGrowth) dims(Titanic)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.