is.Faultwarn: Check error or warning

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

Return TRUE if error oe warning occured. Error or warning of a procedure in nlr package will be saved in Fault slot of fited object with object type class Fault. is.Faultwarn read the Fault slot or a Fault object to detect error happened or no. The value inside Fault$FN will display the error code. If is not zero means an error or warning raised.

Usage

1

Arguments

obj

all fited objects include a slot of Fault object to represent the error. obj can be fitt objects: nl.fitt, nl.fitt.gn, nl.fitt.rob, nl.fitt.rgn, Fault.

Details

is.Faultwarn is imitating other is. primitive functions.It is implemented for debuging purpose in nlr.

Value

logical value TRUE or T if error or warning occured, FALSE or F if result is not error nor warning. Technicaly if The slot FN of Fault object if is not zero means error or warning raised, in that case other slots represent the error or warning informations.

Note

The Fault object can be error or warning, is.Warn check for warning only and is.Fault check the error.

Author(s)

Hossein Riazoshams, May 2014. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/

References

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

See Also

Fault, is.Warn or is.Fault, nl.fitt, nl.fitt.gn, nl.fitt.rob, nl.fitt.rgn

Examples

1

nlr documentation built on July 31, 2019, 5:09 p.m.

Related to is.Faultwarn in nlr...