schema_validator_integer: Create an integer schema validator

View source: R/schema_helpers.R

schema_validator_integerR Documentation

Create an integer schema validator

Description

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

Usage

schema_validator_integer(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.