lengthR Documentation

Length of an Object

Description

Get the length of a vector or a matrix.

Usage

## S4 method for signature 'fmV'
length(x)

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

Arguments

x

an FlashR object.

Value

an integer of length 1 or a double if the object has more than 2^31-1 elements.

Examples

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