check_positive: Check whether variables are strictly positive

View source: R/fct_inspection.R

check_positiveR Documentation

Check whether variables are strictly positive

Description

This function tests whether variables are strictly positive (for instance for costs and relative risks inputs)

Usage

check_positive(..., df, max_view = 50)

Arguments

...

character vector. This character vector contains the name of the variables of which the sum will be checked.

df

a dataframe.

max_view

numeric. Determines the number of iterations to display which do not fulfill the check. Default is 50.

Value

A dataframe.

Examples

# Checking whether a variable is strictly positive
check_positive("c_pfs", df = df_pa)

# Checking whether two variables are strictly positive
# Descreasing the number of iterations to display to 20.
check_positive("c_pfs", "c_pd", df = df_pa)

Xa4P/pacheck documentation built on April 14, 2025, 1:51 p.m.