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

is.infR 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))

GLDEX documentation built on Aug. 21, 2023, 9:08 a.m.

Related to is.inf in GLDEX...