S4ZeroRange: Check zero rang

Description Usage Arguments Details Value Examples

Description

Check if range of limits is close to zero

Usage

1
2
3
4
5
6
7
S4ZeroRange(x, tol = 1000 * .Machine$double.eps)

## S4 method for signature 'numeric'
S4ZeroRange(x, tol = 1000 * .Machine$double.eps)

## S4 method for signature 'Ranges'
S4ZeroRange(x, tol = 1000 * .Machine$double.eps)

Arguments

x

An object representing a range

tol

A value specifying the tolerance.

Details

Defaults to the zero_range function.

Value

A logical of length 1: TRUE if the relative differences of the range are not distinguishable from 0.

Examples

1
2
3
S4ZeroRange(c(10, 10)) # TRUE
S4ZeroRange(c(10, 11)) # FALSE
S4ZeroRange(c(NA, 10)) # NA

teunbrand/ggnomics documentation built on Aug. 2, 2020, 7:34 p.m.