R/utils.R
tgs_finite.Rd
Checks whether all the elements of the vector are finite.
tgs_finite(x)
numeric or integer vector or matrix
'TRUE' if all the elements of 'x' are finite, otherwise 'FALSE'.
'tgs_finite' returns 'TRUE' if all the elements of 'x' are finite numbers. (See: 'is.finite'.)
tgs_finite(1:10) #> [1] TRUE tgs_finite(c(1:10, NaN)) #> [1] FALSE tgs_finite(c(1:10, Inf)) #> [1] FALSE