Hey,
this was asked before but unanswered.
I systematically either get the follow errors, depending if I use mutate(across(condition, function) or mutate(across(condition, ~ function(.x)):
- no applicable method for 'escape' applied to an object of class "formula"
- no applicable method for 'escape' applied to an object of class "function"
And since you pass your function to across with either...I think it doesn't work but maybe I'm missing something.
SO similar post.