25.6 Using the rescale01() function (cont.)

Then you can rewrite the call to mutate() as:

df |> mutate(
  a = rescale01(a),
  b = rescale01(b),
  c = rescale01(c),
  d = rescale01(d),
)
## # A tibble: 5 × 4
##         a      b     c     d
##     <dbl>  <dbl> <dbl> <dbl>
## 1 0.221   0      0.428 0.135
## 2 0.485   1      0     0.132
## 3 0.00788 0.311  0.653 0.241
## 4 0       0.414  1     1    
## 5 1       0.0933 0.945 0