is_positive_integer_value: Checks if the value is a single positive integer value (not...

View source: R/integer_value.R

is_positive_integer_valueR Documentation

Checks if the value is a single positive integer value (not type)

Description

Checks if the value is a single positive integer value (not type)

Usage

is_positive_integer_value(value, allow_na = FALSE, allow_null = FALSE)

Arguments

value

the value to verify

allow_na

if TRUE, accepts a NA value

allow_null

if TRUE, accepts a NULL value

Examples

## Not run: 
# For assertion
assertthat::assert_that(qscheck::is_positive_integer_value(my_parameter))
# For check
if (qscheck::is_positive_integer_value(my_parameter)) {}

## End(Not run)


AstraZeneca/qscheck documentation built on Nov. 1, 2023, 4:45 a.m.