Skip to content

Instantly share code, notes, and snippets.

@kleinlennart
Created October 24, 2020 17:43
Show Gist options
  • Save kleinlennart/e3d5078556ded25ef8037df5e378770e to your computer and use it in GitHub Desktop.
Save kleinlennart/e3d5078556ded25ef8037df5e378770e to your computer and use it in GitHub Desktop.
Dplyr Mutate Function Collection
# Mutate numeric (0 / 1) coded columns to logical
dat <- s1 %>%
mutate(across(where(is.numeric), as.logical))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment