info | R Documentation |
info gets the dimension or length of a matrix, array, data.frame or list. It is safer than dim because if the object is a list dim fails.
info(invar, verbose = FALSE)
invar |
an object that is either a matrix, an array, a data.frame or a list |
verbose |
should the head of the object be printed to console. default=FALSE |
the dimensions of the object
x <- array(rnorm(125,mean=5,sd=1),dim=c(5,5,5))
info(x,FALSE)
x <- list(x=5,y=6,z=7)
info(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.