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