This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install.packages("tidyverse","ggplot2","worldfootballR") # run this line to install packages used in this script | |
{ | |
library(tidyverse) # load packages | |
library(ggplot2) | |
library(worldfootballR) | |
} | |
# download data | |
results <- worldfootballR::get_match_results("ENG","M",2022) # download data from fbref |