nrowR Documentation

The Number of Rows/Columns of a matrix.

Description

nrow and ncol return the number of rows or columns present in x.

Usage

## S4 method for signature 'fm'
nrow(x)

## S4 method for signature 'fm'
ncol(x)

Arguments

x

a matrix.

Value

an integer of length 1 or NULL.

Examples

mat <- fm.runif.matrix(100, 10)
nrow(mat)
ncol(mat)