| dimension | R Documentation | 
Gets the dimension of the object similar to what dim() does,
but instead of NULL it will return the length of a vector.
If a function is passed, NULL is returned.
## Default S3 method:
dimension(object, ...)
| object | The object for which the dimension should be obtained. | 
| ... | Not used. | 
Returns an integer vector or NULL.
Henrik Bengtsson
ll.default().
dim() and length().
  dimension(matrix(1:100, ncol=10))     # 10 10
  dimension(1:14)                       # 14
  dimension(data.frame(a=1:10, b=10:1)) # 10  2
  dimension(print)                      # NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.