DIM | R Documentation |
Get the dimensions of an object, retuning the length if that object has no
dim
attribute.
DIM(x)
x |
Any object. |
A integer vector of non-negative values.
NROW
, dim
# For data frames and matrices, DIM is the same as dim. DIM(sleep) # For vectors (and other objects without a dim attribute), DIM is the # same as length. DIM(1:10) DIM(list(x = 1:10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.