Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

checkmate (version 1.7.3)

anyInfinite: Check if an object contains infinite values

Description

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

Usage

anyInfinite(x)

Arguments

x
[ANY] Object to check.

Value

  • [logical(1)] Returns TRUE if any element if -Inf or Inf.

Examples

Run this code
anyInfinite(1:10)
anyInfinite(c(1:10, Inf))
iris[3, 3] = Inf
anyInfinite(iris)

Run the code above in your browser using DataLab