is.finiteR Documentation

Finite, Infinite and NaN Numbers

Description

is.finite and is.infinite return a vector of the same length as x, indicating which elements are finite (not infinite and not missing) or infinite.

Usage

## S4 method for signature 'fm'
is.nan(x)

## S4 method for signature 'fmV'
is.nan(x)

## S4 method for signature 'fm'
is.infinite(x)

## S4 method for signature 'fmV'
is.infinite(x)

## S4 method for signature 'fm'
is.finite(x)

## S4 method for signature 'fmV'
is.finite(x)

Arguments

x

a FlashR object

Value

A logical vector of the same length as x

Examples

mat <- fm.runif.matrix(100, 10)
is.finite(mat)
is.infinite(mat)
is.nan(mat)