Object dimensions

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.