R/df_utils.R
clip_vals.Rd
Clips numeric values so that they lie in the range [min_val, max_val] Works on both numeric arrays and dataframes
clip_vals(x, min_val = NULL, max_val = NULL)