numCols: 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)

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

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