Learn R Programming

nlr (version 0.1-3)

is.inf: Check IEEE Arithmetic Values

Description

Returns a logical vector or matrix describing the type of numeric elements present. This distinguishes between infinite values, NaN's, missing values and ordinary numbers.

Usage

is.inf(x)

Arguments

x

numeric vector of values. Check performs for all values.

Value

Returns an object similar to the input which is filled logical values. Values will be false for vectors that are not of mode "numeric".

is.infinite is TRUE for values of x that are either plus or minus infinity.

is.inf is an abbreviation for is.infinite

Details

These functions are created for compatibility with SPLUS.

References

Riazoshams H, Midi H, and Ghilagaber G, 2018,. Robust Nonlinear Regression, with Application using R, Joh Wiley and Sons.

See Also

nl.form

Examples

Run this code
# NOT RUN {
aaray=c(0,3/0)
is.inf(aaray)
is.missing(aaray)
# }

Run the code above in your browser using DataLab