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)

splus2R documentation built on May 30, 2017, 4:10 a.m.

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