anyInfinite {checkmate} | R Documentation |
Check if an object contains infinite values
Description
Supported are atomic types (see is.atomic
), lists and data frames.
Usage
anyInfinite(x)
Arguments
x |
[ |
Value
[logical(1)
] Returns TRUE
if any element is -Inf
or Inf
.
Examples
anyInfinite(1:10)
anyInfinite(c(1:10, Inf))
iris[3, 3] = Inf
anyInfinite(iris)
[Package checkmate version 2.3.2 Index]