in_range: in range

View source: R/dsmartr_helpers.R

in_rangeR Documentation

in range

Description

Returns true if number is within range

Usage

in_range(value = NULL, lower = NULL, upper = NULL, strict = TRUE)

Arguments

value

Numeric; number to check

lower

Numeric; lower limit of range

upper

Numeric; upper limit of range

strict

Logical; < or <= ?

Value

TRUE if value is within range

Examples

in_range(5, 3, 6)
in_range(5, 3, 5, FALSE)
in_range(5, 3, 5, TRUE)

obrl-soil/dsmartr documentation built on Feb. 1, 2024, 10:57 p.m.