Skip to content

Instantly share code, notes, and snippets.


klmr/summarize.r Secret

Last active Aug 28, 2018
What would you like to do?
Summarise a simple table in < 5 lines of code #so
readr::read_csv(input_filename) %>%
dplyr::group_by(drug_name) %>%
dplyr::summarize(num_prescriber = n(), total_cost = sum(drug_cost)) %>%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment