Learn R Programming

tgstat (version 2.3.28)

tgs_finite: 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)

Value

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

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'.)

Examples

Run this code

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

Run the code above in your browser using DataLab