anyNaN: Check if an object contains NaN values

View source: R/anyNaN.R

anyNaNR Documentation

Check if an object contains NaN values

Description

Supported are atomic types (see is.atomic), lists and data frames.

Usage

anyNaN(x)

Arguments

x

[any]
Object to check.

Value

[logical(1)] Returns TRUE if any element is NaN.

Examples

anyNaN(1:10)
anyNaN(c(1:10, NaN))
iris[3, 3] = NaN
anyNaN(iris)

checkmate documentation built on Aug. 18, 2025, 5:36 p.m.