Learn R Programming

fb4package (version 2.0.0)

validate_range_core: Core range validation with multiple strategies

Description

Validates that numeric values fall within specified ranges. Supports different strategies for handling out-of-range values.

Usage

validate_range_core(
  value,
  param_name,
  min_val = NULL,
  max_val = NULL,
  strategy = "strict",
  default_value = NULL,
  skip_mask = NULL
)

Value

Validation result

Arguments

value

Numeric value(s) to validate

param_name

Parameter name for messages

min_val

Minimum allowed value

max_val

Maximum allowed value

strategy

Handling strategy for out-of-range values

default_value

Default value for replacement

skip_mask

Logical mask of values to skip validation