isNaN_or_Inf: Lazy infinite or NaN numbers

View source: R/lazyNumbers.R

isNaN_or_InfR Documentation

Lazy infinite or NaN numbers

Description

Check whether values are infinite or NaN in lazy vectors and lazy matrices.

Usage

isNaN_or_Inf(x)

Arguments

x

a lazy vector or a lazy matrix

Value

A logical vector or a logical matrix.

Note

If you want to check whether a lazy number is infinite or whether a lazy number is NaN, you have to call 'as.double'. There is no way to distinguish an infinite lazy number from a NaN lazy number without resorting to its double approximation.

Examples

isNaN_or_Inf(lazyvec(c(1, NaN, NA, Inf)))

lazyNumbers documentation built on Nov. 22, 2022, 1:05 a.m.