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)

Example output

[1] 4
[1] 3

splus2R documentation built on Jan. 30, 2021, 9:05 a.m.