Skip to content

Instantly share code, notes, and snippets.

@johnmackintosh
Last active November 2, 2018 11:32
Show Gist options
  • Save johnmackintosh/96078399303c1bfe38b520ac1956ec6d to your computer and use it in GitHub Desktop.
Save johnmackintosh/96078399303c1bfe38b520ac1956ec6d to your computer and use it in GitHub Desktop.
dplyr case_when syntax layout example
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