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.
The package includes several key tables that can be joined to create complex analyses: tournaments : General info on each World Cup year. matches : Results, venues, and attendance for every game. goals : Minute-by-minute data on who scored and how. worldcup r package jfjelstul
goals <- worldcup::goals top_scorers <- goals %>% group_by(player) %>% summarise(goals = n()) %>% arrange(desc(goals)) Without this package
The matches dataset contains 21 variables, including: - worldcup::goals top_scorers <