is.inf | R Documentation |
is.inf
returns a vector of the same length as the input object,
indicating which elements are infinite (not missing).
is.inf(x)
x |
object to be tested |
This calls is.infinite
.
This returns a vector of the same length as x
; the j
th
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.
is.infinite
is.inf(Inf)
# [1] TRUE
is.inf(NA)
# [1] FALSE
is.inf(1)
# [1] FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.