| dim | R Documentation |
Simple overload to return dim when it's sensible and length otherwise
dim(item)
item |
The object whose dimensions are to be determined |
Either a single value as returned by length or a vector of integers indicating the magnitude of each dimension as returned by dim
Carl Witthoft, carl@witthoft.com
dim , length,
x1<-1:10
x2<-matrix(1,3,4)
dim(x1)
dim(x2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.