Checks whether all the elements of the vector are finite.

tgs_finite(x)

Arguments

x

numeric or integer vector or matrix

Value

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

Details

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

Examples


tgs_finite(1:10)
#> [1] TRUE
tgs_finite(c(1:10, NaN))
#> [1] FALSE
tgs_finite(c(1:10, Inf))
#> [1] FALSE