schema_validator_numeric: Create a numeric schema validator

View source: R/schema_helpers.R

schema_validator_numericR Documentation

Create a numeric schema validator

Description

Returns a predicate function that checks a scalar numeric value against inclusive numeric bounds and optional missingness.

Usage

schema_validator_numeric(min = -Inf, max = Inf, allow_na = FALSE)

Arguments

min

A single numeric lower bound.

max

A single numeric upper bound.

allow_na

Logical scalar indicating whether missing values are permitted.

Value

A function of signature function(x) -> TRUE/FALSE.


fluxCore documentation built on Sept. 22, 2026, 5:07 p.m.