numCols: Object dimensions

Description Usage Arguments Value See Also Examples

Description

Returns number of rows or number of columns of rectangular input object.

Usage

1
2

Arguments

x

rectangular object.

Value

the number of rows or columns of the input object.

See Also

as.data.frame,matrix,Subscript,nrow,dimnames.

Examples

1
2
3
x <- matrix(1:12, nrow=3)
numCols(x)
numRows(x)


Search within the splus2R package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.