DIM

Get the dimensions of an object

Get the dimensions of an object, retuning the length if that object has no dim attribute.

Usage
DIM(x)
Arguments
x
Any object.
Value

A integer vector of non-negative values.

See Also

NROW, dim

Aliases
  • DIM
Examples
library(assertive.properties) # 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))
Documentation reproduced from package assertive.properties, version 0.0-4, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.