Recode multiple categorical variables to new variables

You can use mutate_at() or the new across() to recode several columns at the same time.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.