numCols | R Documentation |
Returns number of rows or number of columns of rectangular input object.
numCols(x)
numRows(x)
x |
rectangular object. |
the number of rows or columns of the input object.
as.data.frame
,matrix
,Subscript
,nrow
,dimnames
.
x <- matrix(1:12, nrow=3)
numCols(x)
numRows(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.