is.inf returns a vector of the same length as the input object,
indicating which elements are infinite (not missing).
object to be tested
This returns a vector of the same length as
x[j] is infinite
(i.e., equal to one of
This will be
x is not numeric or complex.
Complex numbers are infinite if either the real and imaginary part is.
1 2 3 4 5 6