is_okerr {i2extras}R Documentation

Error handling for incidence2_fit objects

Description

These functions are used to filter succesful model fits from those that errored or gave warnings.

Usage

is_ok(x, ...)

## Default S3 method:
is_ok(x, ...)

## S3 method for class 'incidence2_fit'
is_ok(x, include_warnings = FALSE, ...)

is_error(x, ...)

## Default S3 method:
is_error(x, ...)

## S3 method for class 'incidence2_fit'
is_error(x, ...)

is_warning(x, ...)

## Default S3 method:
is_warning(x, ...)

## S3 method for class 'incidence2_fit'
is_warning(x, ...)

Arguments

x

The output of function fit_curve().

...

Not currently used.

include_warnings

Include results in output that triggered warnings but not errors. Defaults to FALSE.

Value

Author(s)

Tim Taylor


[Package i2extras version 0.2.1 Index]