isNaN_or_Inf | R Documentation |
Check whether values are infinite or NaN in lazy vectors and lazy matrices.
isNaN_or_Inf(x)
x |
a lazy vector or a lazy matrix |
A logical vector or a logical matrix.
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.
isNaN_or_Inf(lazyvec(c(1, NaN, NA, Inf)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.