is.inf: Infinite

Description Usage Arguments Details Author(s) See Also Examples

Description

is.inf returns a vector of the same length as the input object, indicating which elements are infinite (not missing).

Usage

1

Arguments

...

object to be tested

Details

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). This will be false unless x is numeric or complex. Complex numbers are infinite if either the real and imaginary part is.

Author(s)

Knut M. Wittkowski kmw@rockefeller.edu

See Also

~~objects to See Also as is.finite

Examples

1
2
3
4
5
6
is.inf(Inf)
# [1] TRUE
is.inf(NA)
# [1] FALSE
is.inf(1)
# [1] FALSE

muStat documentation built on May 2, 2019, 5:12 a.m.

Related to is.inf in muStat...