R/anyInfinite.R
anyInfinite.Rd
Supported are atomic types (see is.atomic), lists and data frames.
is.atomic
anyInfinite(x)
[ANY] Object to check.
ANY
[logical(1)] Returns TRUE if any element is -Inf or Inf.
logical(1)
TRUE
-Inf
Inf
anyInfinite(1:10) #> [1] FALSE anyInfinite(c(1:10, Inf)) #> [1] TRUE iris[3, 3] = Inf anyInfinite(iris) #> [1] TRUE