[
top
|
up
]
The Number of Rows of a Matrix
Syntax
nrow(x) NROW(x)
Arguments
x
array
Description
nrow
returns the number of rows present in its argument.
NROW
does the same, but dealing a vector as 1-column matrix.
See Also
ncol
and
NCOL
.
Examples
nrow(matrix(1:12, 3, 4)) # 3 NROW(1:12) # 12