nrow {base}
Description
nrow and ncol return the number of rows or columns present in x. NCOL and NROW do the same treating a vector as 1-column matrix.
Usage
nrow(x) ncol(x) NCOL(x) NROW(x)
Arguments
- x
- a vector, array or data frame
Values
an integer of length 1 or NULL.
References
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole (ncol and nrow.)
Examples
Documentation reproduced from R 3.0.1. License: GPL-2.
