is.infinite {math} R 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

is.infinite(x);

Arguments

x

R object to be tested: the default methods handle atomic vectors.

env

[as Environment]

Details

is.infinite returns a vector of the same length as x the jth element of which is TRUE if x[j] is infinite (i.e., equal to one of Inf or -Inf) and FALSE otherwise. This will be false unless x is numeric or complex. Complex numbers are infinite if either the real or the imaginary part is.

Authors

SMRUCC genomics Institute

Value

A logical vector of the same length as x: dim, dimnames and names attributes are preserved.

clr value class

Examples


[Package math version 2.33.856.6961 Index]