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