anyNaN: Check if an object contains NaN values

Description Usage Arguments Value Examples

Description

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

Usage

1
anyNaN(x)

Arguments

x

[ANY]
Object to check.

Value

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

Examples

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

checkmate documentation built on July 4, 2019, 5:12 p.m.