Learn R Programming

nlr (version 0.1-3)

is.Faultwarn: Check error or warning

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

is.Faultwarn(obj)

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.

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.

Details

is.Faultwarn is imitating other is. primitive functions.It is implemented for debuging purpose in 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

Run this code
# NOT RUN {
is.Faultwarn(Fault(FN=1))
# }

Run the code above in your browser using DataLab