powered by
Returns number of rows or number of columns of rectangular input object.
numCols(x) numRows(x)
the number of rows or columns of the input object.
rectangular object.
as.data.frame,matrix,Subscript,nrow,dimnames.
as.data.frame
matrix
Subscript
nrow
dimnames
x <- matrix(1:12, nrow=3) numCols(x) numRows(x)
Run the code above in your browser using DataLab