get_dims | R Documentation |
Returns the dimensions of an object. Also works on atomic (1-d) objects for which base-r dim() returns NULL.
get_dims(x)
x |
(an object) An object. |
v = 1:10
get_dims(v)
m = matrix(1:9, nrow=3)
get_dims(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.