Learn R Programming

tgstat (version 2.3.14)

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)

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

Run this code
# NOT RUN {
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