is.inf {GLDEX}R Documentation

Returns a logical vecto, TRUE if the value is Inf or -Inf.

Description

This function works in similar fashion as in is.na and is.notinf.

Usage

is.inf(x)

Arguments

x

A numerical value or a vector of data.

Value

A logical vector, T if the value is Inf or -Inf.

Note

In the presence of missing value, the function will return a missing value.

Author(s)

Steve Su

See Also

is.na,is.notinf

Examples

is.inf(c(Inf,2,2,1,-Inf))

[Package GLDEX version 2.0.0.9.3 Index]