zero_range: Simple implementation from Hadley Wickham that checks if all...

Description Usage Arguments Value

View source: R/utils.R

Description

Simple implementation from Hadley Wickham that checks if all elements of a vector are equal

Usage

1
zero_range(x, tol = .Machine$double.eps^0.5)

Arguments

x

Vector containing numeric elements

tol

The tolerated acceptable error in determining whether elements are equal

Value

A boolean representing if all elements of a vector are equal


immunogenomics/scpost documentation built on July 28, 2021, 4:03 a.m.