tgs_finite: Checks whether all the elements of the vector are finite

View source: R/utils.R

tgs_finiteR Documentation

Checks whether all the elements of the vector are finite

Description

Checks whether all the elements of the vector are finite.

Usage

tgs_finite(x)

Arguments

x

numeric or integer vector or matrix

Details

'tgs_finite' returns 'TRUE' if all the elements of 'x' are finite numbers. (See: 'is.finite'.)

Value

'TRUE' if all the elements of 'x' are finite, otherwise 'FALSE'.

Examples


tgs_finite(1:10)
tgs_finite(c(1:10, NaN))
tgs_finite(c(1:10, Inf))


tgstat documentation built on Sept. 30, 2024, 9:17 a.m.