vec_zero_range: Determine if a vector is close to zero, with a specified...

Description Usage Arguments Details Value Examples

View source: R/range.R

Description

Mimicking zero_range, but doesn't require the input to be numeric or of length 2.

Usage

1
2
3
4
vec_zero_range(x, tol = 1000 * .Machine$double.eps)

## Default S3 method:
vec_zero_range(x, tol = 1000 * .Machine$double.eps)

Arguments

x

A vector with a range.

tol

A value specifying the tolerance.

Details

The default method first tries to cast the input as numeric before handing it off to scales::zero_range.

Value

A logical of length 1

Examples

1
2

teunbrand/ggvctrcoords documentation built on Jan. 12, 2020, 6:25 p.m.