nrow()
and ncol()
return the number of rows or columns present in x.
Usage
nrow(x, ...)
# S3 method for default
nrow(x, ...)
# S3 method for ddf_col
nrow(x, ...)
# S3 method for tbl_ddf
nrow(x, ...)
ncol(x, ...)
# S3 method for default
ncol(x, ...)
# S3 method for ddf_col
ncol(x, ...)
# S3 method for tbl_ddf
ncol(x, ...)
Arguments
- x
An object.
- ...
Other arguments passed on to methods.
Value
An integer or NULL
.
Details
These functions override base functions to make them generic. The default
methods call the base versions.