Skip to content

Instantly share code, notes, and snippets.

@akshat3096
Created May 3, 2019 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akshat3096/844ce09900c1fb1f0804cfe8b3f9f8e1 to your computer and use it in GitHub Desktop.
Save akshat3096/844ce09900c1fb1f0804cfe8b3f9f8e1 to your computer and use it in GitHub Desktop.
data %>%
select(center_type,num_orders) %>%
filter(center_type=="TYPE_A") %>%
summarise(avg_A=mean(num_orders))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment