R Package Worldcup Fjelstul May 2026
The worldcup package complements these by offering . 9. Conclusion The worldcup R package by Joshua C. Fjelstul is the gold standard for World Cup data in R. Its tidy, relational structure, extensive documentation, and full historical coverage make it invaluable for educators, data journalists, football analysts, and hobbyists. Whether you are plotting scoring trends over 90 years of World Cup history or teaching students how to perform complex data joins, worldcup provides a reliable and ready-to-use foundation.
| Dataset | Description | |---------|-------------| | matches | Core match data (teams, score, stage, date, venue, attendance, referee) | | goals | Every goal scored (time, scorer, assist, own goal, penalty) | | cards | Every yellow/red card (time, player, reason) | | penalty_shootouts | Shootout details (team, player, scored/missed) | | players | Player metadata (name, position, birth date, squad number) | | teams | Team metadata (name, confederation, code) | | tournaments | Tournament-level info (year, host, winner, top scorer) | r package worldcup fjelstul
# Install from CRAN install.packages("worldcup") install.packages("devtools") devtools::install_github("jfjelstul/worldcup") Load the package library(worldcup) 4. Main Datasets The package contains several tibbles. The most important ones are: The worldcup package complements these by offering
