is_in_tolerance: Is value within tolerance?

View source: R/NAME_is_in_tolerance.R

is_in_toleranceR Documentation

Is value within tolerance?

Description

Computes if a value is within a tolerance region. Both an absolute tolerance and a relative tolerance are considered. If at least one of both criteria are met, the fuction returns TRUE, otherwise FALSE.

Usage

is_in_tolerance(asis, tobe, tol_rel, tol_abs)

Arguments

asis

as-is value (num), the observed value

tobe

to-be value (num), the target value

tol_rel

relative tolerance (as a proportion, num)

tol_abs

absolute tolerance (num)

Value

in_tolerenace, lgl

Examples

is_in_tolerance(asis = 39.5, tobe = 42, tol_rel = .05, tol_abs = 2.5)

sebastiansauer/prada documentation built on Jan. 17, 2024, 11:05 a.m.