I can provide the you need to pull those insights.
winners <- matches %>% group_by(home_team) %>% summarise(wins = sum(home_score > away_score)) %>% arrange(desc(wins))
Without this package, calculating "Host Nation Goal Difference" would require manually cross-referencing Wikipedia pages for host years and then parsing score strings. With worldcup , it is a simple join and aggregation.
In this article, we'll explore the worldcup R package developed by Jeffrey Fjelstul, which provides a comprehensive collection of World Cup data from 1950 to 2018. We'll take a closer look at the package's features, functionality, and example use cases.