svAssert v0.1.1
R/any_infinite.R
any_infinite.Rd
Supported are atomic types (see is.atomic), lists and data frames.
is.atomic
any_infinite(x)
An object to check for the presence of infinite values.
logical(1) Returns TRUE if any element is -Inf or Inf.
logical(1)
TRUE
-Inf
Inf
any_infinite(1:10) #> [1] FALSE any_infinite(c(1:10, Inf)) #> [1] TRUE data(iris, package = "datasets") iris[3, 3] <- Inf any_infinite(iris) #> [1] TRUE