Open krlmlr opened 7 years ago
trim: a variant of pmin(pmax(x, min_val), max_val)
pmin(pmax(x, min_val), max_val)
Original issue: https://github.com/hadley/dplyr/issues/2108, CC @einarhjorleifsson
Also about ˋbetween` : tidyverse/dplyr#3744
I also call this clamp()
clamp()
trim: a variant of
pmin(pmax(x, min_val), max_val)
Original issue: https://github.com/hadley/dplyr/issues/2108, CC @einarhjorleifsson