Skip to contents

This function checks the probability that an input or output falls within a user-defined range.

Usage

check_range(df, outcome, min_val = NULL, max_val = NULL)

Arguments

df

a dataframe.

outcome

character string. Name of variable of the dataframe for which to check the range.

min_val

numeric. Define the minimum value of the range.

max_val

numeric. Define the maximum value of the range.

Value

A numeric.

Details

If only `min_val` is specified, the proportion of iteration above this value will be computed. If only `max_val` is specified, the proportion of iteration below this value will be computed.

Examples