View source: R/fct_inspection.R
check_range | R Documentation |
This function tests whether an input or output value falls within a user-defined range and return the proportion of iteration in which this is not the case.
check_range(df, param, min_val = NULL, max_val = NULL)
df |
a dataframe. |
param |
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. |
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.
A numeric.
# Checking how often the "u_pfs" values falls within 0.55 and 0.72.
data(df_pa)
check_range(df = df_pa,
outcome = "u_pfs",
min_val = 0.55,
max_val = 0.72
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.