powered by
Returns the size of an object
size(x, verbosity = 1L)
Integer vector with length equal to the number of dimensions of x, invisibly.
x
any object with length() or dim().
length()
dim()
Integer: Verbosity level. If > 0, print size to console
EDG
If dim(x) is NULL, returns length(x).
dim(x)
length(x)
x <- rnorm(20) size(x) # 20 x <- matrix(rnorm(100), 20, 5) size(x) # 20 5
Run the code above in your browser using DataLab