Learn R Programming

GLDEX (version 2.0.0.9.3)

is.inf: 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)

Value

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

Arguments

x

A numerical value or a vector of data.

Author

Steve Su

See Also

is.na,is.notinf

Examples

Run this code
is.inf(c(Inf,2,2,1,-Inf))

Run the code above in your browser using DataLab