dot-check_if_positive_integer: Utility functions for input validity.

.check_if_positive_integerR Documentation

Utility functions for input validity.

Description

Utility function to check whether an object is a strictly positive integer

Usage

.check_if_positive_integer(number, parameter_name)

Arguments

number

The value to be tested

parameter_name

A string containing the name the tested parameter had in the initial function in which it was passed.

Value

TRUE if all tests were passed. Throws an error otherwise.


covid-19-Re/estimateR documentation built on Sept. 14, 2024, 5:49 a.m.