is_gte_value: Check if the passed entity is a single numerical value which...

View source: R/numeric_value.R

is_gte_valueR Documentation

Check if the passed entity is a single numerical value which is greater than or equal to another specified value.

Description

Check if the passed entity is a single numerical value which is greater than or equal to another specified value.

Usage

is_gte_value(value, comparator, allow_na = FALSE, allow_null = FALSE)

Arguments

value

the value to check

comparator

the minimum allowed value, inclusive.

allow_na

if true, accept a value that is NA.

allow_null

if true, accept a value that is NULL.

Examples

## Not run: 
# For assertion
assertthat::assert_that(qscheck::is_gte_value(value, comparator))
# For check
if (qscheck::is_gte_value(value, comparator)) {}

## End(Not run)


AstraZeneca/qscheck documentation built on Nov. 1, 2023, 4:45 a.m.