is.inf: Infinite

Description Usage Arguments Details 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
  is.inf(x)

Arguments

x

object to be tested

Details

This calls is.infinite.

This returns a vector of the same length as x; the jth element is TRUE if x[j] is infinite (i.e., equal to one of Inf or -Inf). This will be FALSE if x is not numeric or complex. Complex numbers are infinite if either the real and imaginary part is.

See Also

is.infinite

Examples

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

splus2R documentation built on May 20, 2017, 1:56 a.m.

Search within the splus2R package
Search all R packages, documentation and source code