is.infinite {math} | R Documentation |
is.finite and is.infinite return a vector of the same length as
x, indicating which elements are finite (not infinite and not
missing) or infinite.
is.infinite(x);
is.infinite returns a vector of the same length as x the jth element of which is TRUE if x[j] is infinite (i.e., equal to one of Inf or -Inf) and FALSE otherwise. This will be false unless x is numeric or complex. Complex numbers are infinite if either the real or the imaginary part is.
A logical vector of the same length as x: dim, dimnames and names attributes are preserved.