numCols: Object dimensions

numColsR Documentation

Object dimensions

Description

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

Usage

numCols(x)
numRows(x)

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

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

splus2R documentation built on May 29, 2024, 7:29 a.m.