Using dplyr's group_by for grouping data in R (CC163)
In this episode of Code Club, Pat uses
group_by function for grouping data in R without using the summarize function. Instead he uses
slice_max to return the row or rows for each group that has the most recent date. He’ll demonstrate how to use these functions with a massive data frame that we downloaded from Our World in Data that describes COVID-19 vaccination rates by country and day.
You can browse the state of the demo at thecomments powered by Disqus