Check if an object contains infinite values
Supported are atomic types (see is.atomic
), lists and data frames.
anyInfinite(x)
x |
[ |
[logical(1)
] Returns TRUE
if any element is -Inf
or Inf
.
anyInfinite(1:10) anyInfinite(c(1:10, Inf)) iris[3, 3] = Inf anyInfinite(iris)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.