79722256

Date: 2025-08-01 08:42:49
Score: 0.5
Natty:
Report link

Anyone getting the argument of `across()` is deprecated error may like to try...

X %>% mutate(across(all_of(lead_cols), \(x) str_pad(x, width = 3, pad = "0")))

or more simply in this case (noting the overworked variable naming)

X %>% mutate(across(x:y, \(x) str_pad(x, width = 3, pad = "0")))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Big Old Dave