Last active
November 2, 2018 11:32
-
-
Save johnmackintosh/96078399303c1bfe38b520ac1956ec6d to your computer and use it in GitHub Desktop.
dplyr case_when syntax layout example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutate( Movement_Type = case_when( | |
Type == "Transfer In" ~ "Transfer", | |
Type == "Transfer Out" ~ "Transfer")) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment