Learn R Programming

nlr (version 0.1-3)

is.Fault: Check error

Description

Error of a procedure in nlr package will be saved in Fault slot of fited object with object type class Fault. is.Fault read the Fault slot or a Fault object to detect error happened or no. The value inside Fault$FL will show the result.

Usage

is.Fault(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 happened, FALSE or F if result is not error.

Details

is.Fault 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.Faultwarn, nl.fitt, nl.fitt.gn, nl.fitt.rob, nl.fitt.rgn

Examples

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

Run the code above in your browser using DataLab