URL details: markhneedham.com/blog/2015/06/27/r-dplyr-squashing-multiple-rows-per-group-into-one/

URL title: R: dplyr - squashing multiple rows per group into one | Mark Needham
URL description: I spent a bit of the day working on my Wimbledon data set and the next thing I explored is all the people that have beaten Andy Murray in the tournament. The following dplyr query gives us the names of those people and the year the match took place: library(dplyr) > main_matches %>% filter(loser == "Andy Murray") %>% select(winner, year) winner year 1 Grigor Dimitrov 2014 2 Roger Federer 2012 3 Rafael Nadal 2011 4 Rafael Nadal 2010 5 Andy Roddick 2009 6 Rafael Nadal 2008 7 Marcos Baghdatis 2006 8 David Nalb
URL last crawled: 2024-07-22
URL speed: 0.877 MB/s, downloaded in 0.050 seconds

open external url

We found no external links pointing to this url.