clean_posint: Check positive integer

View source: R/clean.R

clean_posintR Documentation

Check positive integer

Description

Check positive integer

Usage

clean_posint(x, allow_na = FALSE, xname = deparse(substitute(x)))

Arguments

x

Integer vector.

allow_na

Logical: If TRUE, NAs are excluded before checking. If FALSE (default), NAs trigger an error.

xname

Character: Name of the variable for error messages.

Value

Integer vector of positive values.

Author(s)

EDG

Examples

clean_posint(5)

rtemis.core documentation built on April 22, 2026, 1:11 a.m.