Size

nrow(X) number of rows in X

ncol(X) number of columns in X

dim(X) dimensions of X, result as vector

length(v) number of elements in a vector