library(readr) library(dplyr) matches_csv <- read_csv("data-csv/matches.csv") goals_csv <- read_csv("data-csv/goals.csv") players_csv <- read_csv("data-csv/players.csv")
Load them:
Here’s a for working with the worldcup R package (the Fjelstul World Cup database, usually accessed via the worldcup package or directly from the CSV data). worldcup r package fjelstul data-csv
| Table | Description | |--------|-------------| | matches | Match-level data (score, date, stadium, etc.) | | goals | Goal-scoring events (scorer, assist, minute, type) | | cards | Yellow/red cards | | substitutions | Substitutions | | players | Player metadata | | teams | Team metadata | | tournaments | World Cup editions (year, host, winner) | Database Schema (Main Tables) The package contains several
install.packages("worldcup") library(worldcup) If you prefer the directly (from the Fjelstul World Cup Database GitHub repo ), download the data-csv/ folder. 2. Database Schema (Main Tables) The package contains several tibbles. Key ones: library(readr) library(dplyr) matches_csv <