Returns number of rows or number of columns of rectangular input object.
numCols(x) numRows(x)
rectangular object.
the number of rows or columns of the input object.
as.data.frame,matrix,Subscript,nrow,dimnames.
as.data.frame
matrix
Subscript
nrow
dimnames
# NOT RUN { x <- matrix(1:12, nrow=3) numCols(x) numRows(x) # }
Run the code above in your browser using DataCamp Workspace