nonnegative: Safely check whether x is less than zero

View source: R/custom_func.R

nonnegativeR Documentation

Safely check whether x is less than zero

Description

If using Julia, units are preserved

Usage

nonnegative(x)

Arguments

x

Value

Value

x if x is greater than 0, 0 otherwise

Examples

nonnegative(NA)
nonnegative(-1)


sdbuildR documentation built on Nov. 19, 2025, 5:07 p.m.