powered by
Specialized validator for positive numeric values.
validate_positive(value, param_name, strategy = "strict", min_val = 0.001)
An object of class fb4_validation (see
fb4_validation
validation_result). valid is TRUE when all values are \(\ge\)
validation_result
valid
TRUE
min_val. Violations are recorded in
min_val
errors (strategy = "strict") or warnings
errors
strategy = "strict"
warnings
(strategy = "warn").
strategy = "warn"
Value(s) to validate
Parameter name
Handling strategy
Minimum positive value (default 0.001)
validate_positive(5, "weight") validate_positive(0, "weight")$valid
Run the code above in your browser using DataLab