isSomeInfinite: Checks whether some object is infinite

View source: R/0helpers.R

isSomeInfiniteR Documentation

Checks whether some object is infinite

Description

Checks whether some object is infinite

Usage

isSomeInfinite(obj)

Value

Returns TRUE if there's some object that's infinite, FALSE when all objects are finite

Examples


isSomeInfinite(1:10)
isSomeInfinite(c(1e2000, 1:1000000))

# Faster than
# isSomeInfinite(c(1:1000000, 1e2000))

AlexanderLyNL/bstats documentation built on Sept. 11, 2023, 4:10 p.m.