Skip to contents

Overview

This package is designed to allow users to extract various world football results and player statistics from the following popular football (soccer) data sites:

Installation

As at 2024-06-29, we are no longer including instructions to install from CRAN. The version pushed to CRAN is very much out of date, and with very regular updates to this library, we advise installing from GitHub only.

You can install the released version of worldfootballR from GitHub with:

# install.packages("devtools")
devtools::install_github("JaseZiv/worldfootballR")

Usage

Package vignettes have been built to help you get started with the package.

  • For functions to extract data from FBref, see here
  • For functions to extract data from Transfermarkt, see here
  • For functions to extract data from Understat, see here
  • For functions to extract data for international matches from FBref, see here

This vignette will cover the functions to load scraped data from the worldfootballR_data data repository.

NOTE:

As of version 0.5.2, all FBref functions now come with a user-defined pause between page loads to address their new rate limiting. See this document for more information.


Load FBref

The following section demonstrates the different loading functions of FBref data.

Load FBref match results

To load pre-scraped match results for all years the data is available, the load_match_results() function can be used. This data is scheduled to be updated most days and a print statement will inform the user of when the data was last updated. All domestic leagues are included in the data repository.

This is the load function equivalent of fb_match_results().

eng_match_results <- load_match_results(country = "ENG", gender = c("M", "F"), season_end_year = c(2020:2022), tier = "1st")
dplyr::glimpse(eng_match_results)
#> Rows: 1,536
#> Columns: 20
#> $ Competition_Name <chr> "FA Women's Super League", "FA Women's Super League",…
#> $ Gender           <chr> "F", "F", "F", "F", "F", "F", "F", "F", "F", "F", "F"…
#> $ Country          <chr> "ENG", "ENG", "ENG", "ENG", "ENG", "ENG", "ENG", "ENG…
#> $ Season_End_Year  <int> 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020,…
#> $ Round            <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N…
#> $ Wk               <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N…
#> $ Day              <chr> "Sat", "Sat", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun…
#> $ Date             <date> 2019-09-07, 2019-09-07, 2019-09-08, 2019-09-08, 2019…
#> $ Time             <chr> "15:00", "15:00", "12:30", "14:00", "14:00", "14:30",…
#> $ Home             <chr> "Manchester City", "Bristol City", "Chelsea", "Birmin…
#> $ HomeGoals        <dbl> 1, 0, 1, 0, 0, 2, 0, 2, 1, 1, 1, 0, 2, 4, 0, 0, 0, 3,…
#> $ Home_xG          <dbl> 0.5, 0.4, 1.3, 0.7, 0.5, 2.6, 0.2, 1.4, 1.6, 0.4, 1.4…
#> $ Away             <chr> "Manchester Utd", "Brighton", "Tottenham", "Everton",…
#> $ AwayGoals        <dbl> 0, 0, 0, 1, 1, 1, 2, 0, 0, 1, 0, 1, 0, 0, 1, 2, 4, 0,…
#> $ Away_xG          <dbl> 1.1, 2.1, 0.3, 0.8, 1.0, 0.8, 2.3, 1.0, 0.3, 1.7, 0.9…
#> $ Attendance       <dbl> 31213, 3041, 24564, 873, 1445, 1795, 897, 441, 996, 1…
#> $ Venue            <chr> "Etihad Stadium", "Stoke Gifford Stadium", "Stamford …
#> $ Referee          <chr> "Rebecca Welch", "Abigail Bryne", "Jack Packman", "El…
#> $ Notes            <chr> "", "", "", "", "", "", "", "", "", "", "", "", "", "…
#> $ MatchURL         <chr> "https://fbref.com/en/matches/f116cea0/Manchester-Der…

Load FBref match results for Cups and International Comps

Similarly, to load pre-scraped match results for cups and international matches in all years the data is available, the load_match_comp_results() function can be used. This data is scheduled to be updated most days and a print statement will inform the user of when the data was last updated.

The following list of competitions (comp_name) are available:

#>  [1] "AFC Asian Cup"                                               
#>  [2] "AFC Asian Cup qualification"                                 
#>  [3] "AFC Women's Asian Cup"                                       
#>  [4] "AFC Women's Asian Cup Qualification"                         
#>  [5] "Africa Cup of Nations"                                       
#>  [6] "Africa Cup of Nations qualification"                         
#>  [7] "Africa Women Cup of Nations"                                 
#>  [8] "Algarve Cup"                                                 
#>  [9] "CONCACAF Gold Cup"                                           
#> [10] "CONCACAF W Championship"                                     
#> [11] "CONMEBOL Copa América"                                       
#> [12] "Copa América Femenina"                                       
#> [13] "Copa Libertadores de América"                                
#> [14] "Copa Sudamericana"                                           
#> [15] "Copa de la Liga Profesional"                                 
#> [16] "Copa del Rey"                                                
#> [17] "Coppa Italia"                                                
#> [18] "Coupe de France"                                             
#> [19] "Coupe de la Ligue"                                           
#> [20] "DFB-Pokal"                                                   
#> [21] "DFB-Pokal Frauen"                                            
#> [22] "EFL Cup"                                                     
#> [23] "FA Cup"                                                      
#> [24] "FIFA Confederations Cup"                                     
#> [25] "FIFA Women's World Cup"                                      
#> [26] "FIFA Women's World Cup Qualification (UEFA)"                 
#> [27] "FIFA World Cup"                                              
#> [28] "FIFA World Cup Qualification — AFC"                          
#> [29] "FIFA World Cup Qualification — CAF"                          
#> [30] "FIFA World Cup Qualification — CONCACAF"                     
#> [31] "FIFA World Cup Qualification — CONMEBOL"                     
#> [32] "FIFA World Cup Qualification — Inter-confederation play-offs"
#> [33] "FIFA World Cup Qualification — OFC"                          
#> [34] "FIFA World Cup Qualification — UEFA"                         
#> [35] "International Friendlies (M)"                                
#> [36] "International Friendlies (W)"                                
#> [37] "NWSL Challenge Cup"                                          
#> [38] "NWSL Fall Series"                                            
#> [39] "OFC Nations Cup"                                             
#> [40] "OFC Women's Nations Cup"                                     
#> [41] "Olympics — Women's Tournament"                               
#> [42] "SheBelieves Cup"                                             
#> [43] "UEFA Champions League"                                       
#> [44] "UEFA Europa Conference League"                               
#> [45] "UEFA Europa League"                                          
#> [46] "UEFA European Football Championship"                         
#> [47] "UEFA European Football Championship Qualifying"              
#> [48] "UEFA Nations League"                                         
#> [49] "UEFA Women's Champions League"                               
#> [50] "UEFA Women's Championship"                                   
#> [51] "UEFA Women's Euro Qualification"
cups <- c("FIFA Women's World Cup","FIFA World Cup")
world_cups <- load_match_comp_results(comp_name = cups)
dplyr::glimpse(world_cups)
#> Rows: 1,312
#> Columns: 20
#> $ Competition_Name <chr> "FIFA Women's World Cup", "FIFA Women's World Cup", "…
#> $ Gender           <chr> "F", "F", "F", "F", "F", "F", "F", "F", "F", "F", "F"…
#> $ Country          <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N…
#> $ Season_End_Year  <int> 1991, 1991, 1991, 1991, 1991, 1991, 1991, 1991, 1991,…
#> $ Round            <chr> "Group stage", "Group stage", "Group stage", "Group s…
#> $ Wk               <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N…
#> $ Day              <chr> "Sat", "Sun", "Sun", "Sun", "Sun", "Sun", "Tue", "Tue…
#> $ Date             <date> 1991-11-16, 1991-11-17, 1991-11-17, 1991-11-17, 1991…
#> $ Time             <chr> "20:45", "15:30", "19:45", "19:45", "19:45", "19:45",…
#> $ Home             <chr> "China PR cn", "Germany de", "Japan jp", "Chinese Tai…
#> $ HomeGoals        <dbl> 4, 4, 0, 0, 2, 3, 4, 1, 0, 0, 0, 2, 0, 0, 4, 2, 2, 0,…
#> $ Home_xG          <dbl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N…
#> $ Away             <chr> "no Norway", "ng Nigeria", "br Brazil", "it Italy", "…
#> $ AwayGoals        <dbl> 0, 0, 1, 5, 3, 0, 0, 0, 3, 5, 8, 2, 3, 2, 1, 0, 1, 2,…
#> $ Away_xG          <dbl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N…
#> $ Attendance       <dbl> 65000, 14000, 14000, 11000, 14000, 14000, 12000, 1200…
#> $ Venue            <chr> "Tianhe Stadium (Neutral Site)", "Jiangmen Stadium (N…
#> $ Referee          <chr> "Salvador Imperatore Marcone", "Rafael Rodriguez", "L…
#> $ Notes            <chr> "", "", "", "", "", "", "", "", "", "", "", "", "", "…
#> $ MatchURL         <chr> "https://fbref.com/en/matches/0d9e0f26/China-PR-Norwa…

Load FBref big 5 league advanced season stats

To load pre-scraped advanced stats for the big five European leagues for either teams or players, the load_fb_big5_advanced_season_stats() can be used. This data is scheduled to be updated most days and a print statement will inform the user of when the data was last updated.

This is the load function equivalent of fb_big5_advanced_season_stats().

all_season_player <- load_fb_big5_advanced_season_stats(stat_type = "defense", team_or_player = "player")
current_season_player <- load_fb_big5_advanced_season_stats(season_end_year = 2022, stat_type = "defense", team_or_player = "player")

all_season_team <- load_fb_big5_advanced_season_stats(stat_type = "defense", team_or_player = "team")
current_season_team <- load_fb_big5_advanced_season_stats(season_end_year = 2022, stat_type = "defense", team_or_player = "team")

Load FBref match shooting

load_fb_match_shooting() can be used to load pre-scraped match shooting logs from FBref. This is the load function equivalent of fb_match_shooting(). Only a handful of leagues are supported.

## 2018 - current season for EPL
load_fb_match_shooting(
  country = "ENG",
  gender = "M",
  tier = "1st"
)
#> # A tibble: 67,575 × 23
#>    MatchURL     Date  Squad Home_Away Match_Half Minute Player Player_Href xG   
#>    <chr>        <chr> <chr> <chr>          <dbl> <chr>  <chr>  <chr>       <chr>
#>  1 https://fbr… 2017… Arse… Home               1 2      Alexa… /en/player… 0.06 
#>  2 https://fbr… 2017… Arse… Home               1 8      Alex … /en/player… 0.04 
#>  3 https://fbr… 2017… Arse… Home               1 14     Alex … /en/player… 0.03 
#>  4 https://fbr… 2017… Arse… Home               1 22     Danny… /en/player… 0.34 
#>  5 https://fbr… 2017… Arse… Home               1 22     Grani… /en/player… 0.02 
#>  6 https://fbr… 2017… Arse… Home               1 26     Danny… /en/player… 0.07 
#>  7 https://fbr… 2017… Arse… Home               1 27     Sead … /en/player… 0.05 
#>  8 https://fbr… 2017… Arse… Home               1 27     Moham… /en/player… 0.01 
#>  9 https://fbr… 2017… Arse… Home               1 38     Grani… /en/player… 0.02 
#> 10 https://fbr… 2017… Arse… Home               1 45+2   Alexa… /en/player… 0.07 
#> # ℹ 67,565 more rows
#> # ℹ 14 more variables: PSxG <chr>, Outcome <chr>, Distance <chr>,
#> #   `Body Part` <chr>, Notes <chr>, Player_SCA_1 <chr>, Event_SCA_1 <chr>,
#> #   Player_SCA_2 <chr>, Event_SCA_2 <chr>, Competition_Name <chr>,
#> #   Gender <chr>, Country <chr>, Tier <chr>, Season_End_Year <int>

## just 2019, for multiple leagues at the same time
load_fb_match_shooting(
  country = c("ITA", "ESP"),
  gender = "M",
  tier = "1st",
  season_end_year = 2019
)
#> # A tibble: 19,810 × 23
#>    MatchURL     Date  Squad Home_Away Match_Half Minute Player Player_Href xG   
#>    <chr>        <chr> <chr> <chr>          <dbl> <chr>  <chr>  <chr>       <chr>
#>  1 https://fbr… 2018… Chie… Home               1 15     Ivan … /en/player… 0.02 
#>  2 https://fbr… 2018… Chie… Home               1 22     Ivan … /en/player… 0.02 
#>  3 https://fbr… 2018… Chie… Home               1 38     Mariu… /en/player… 0.23 
#>  4 https://fbr… 2018… Chie… Home               2 56     Emanu… /en/player… 0.79 
#>  5 https://fbr… 2018… Chie… Home               2 67     Ivan … /en/player… 0.03 
#>  6 https://fbr… 2018… Chie… Home               2 84     Fabri… /en/player… 0.02 
#>  7 https://fbr… 2018… Juve… Away               1 3      Sami … /en/player… 0.20 
#>  8 https://fbr… 2018… Juve… Away               1 5      Paulo… /en/player… 0.04 
#>  9 https://fbr… 2018… Juve… Away               1 6      Sami … /en/player… 0.07 
#> 10 https://fbr… 2018… Juve… Away               1 9      João … /en/player… 0.66 
#> # ℹ 19,800 more rows
#> # ℹ 14 more variables: PSxG <chr>, Outcome <chr>, Distance <chr>,
#> #   `Body Part` <chr>, Notes <chr>, Player_SCA_1 <chr>, Event_SCA_1 <chr>,
#> #   Player_SCA_2 <chr>, Event_SCA_2 <chr>, Competition_Name <chr>,
#> #   Gender <chr>, Country <chr>, Tier <chr>, Season_End_Year <int>

Load FBref match summary

load_fb_match_summary() can be used to load pre-scraped match summaries from FBref. This is the load function equivalent of fb_match_summary(). Only a handful of leagues are supported.

## 2018 - current season for EPL
load_fb_match_summary(
  country = "ENG",
  gender = "M",
  tier = "1st"
)
#> # A tibble: 33,923 × 33
#>    MatchURL      League Match_Date Matchweek Home_Team Home_Formation Home_Score
#>    <chr>         <chr>  <chr>      <chr>     <chr>     <chr>               <dbl>
#>  1 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  2 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  3 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  4 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  5 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  6 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  7 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  8 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  9 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#> 10 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#> # ℹ 33,913 more rows
#> # ℹ 26 more variables: Home_xG <dbl>, Home_Goals <chr>,
#> #   Home_Yellow_Cards <chr>, Home_Red_Cards <chr>, Away_Team <chr>,
#> #   Away_Formation <chr>, Away_Score <dbl>, Away_xG <dbl>, Away_Goals <chr>,
#> #   Away_Yellow_Cards <chr>, Away_Red_Cards <chr>, Game_URL <chr>, Team <chr>,
#> #   Home_Away <chr>, Event_Time <dbl>, Is_Pens <lgl>, Event_Half <dbl>,
#> #   Event_Type <chr>, Event_Players <chr>, Score_Progression <chr>, …

## just 2019, for multiple leagues at the same time
load_fb_match_summary(
  country = c("ITA", "ESP"),
  gender = "M",
  tier = "1st",
  season_end_year = 2019
)
#> # A tibble: 10,311 × 33
#>    MatchURL      League Match_Date Matchweek Home_Team Home_Formation Home_Score
#>    <chr>         <chr>  <chr>      <chr>     <chr>     <chr>               <dbl>
#>  1 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  2 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  3 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  4 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  5 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  6 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  7 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  8 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  9 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#> 10 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#> # ℹ 10,301 more rows
#> # ℹ 26 more variables: Home_xG <dbl>, Home_Goals <chr>,
#> #   Home_Yellow_Cards <chr>, Home_Red_Cards <chr>, Away_Team <chr>,
#> #   Away_Formation <chr>, Away_Score <dbl>, Away_xG <dbl>, Away_Goals <chr>,
#> #   Away_Yellow_Cards <chr>, Away_Red_Cards <chr>, Game_URL <chr>, Team <chr>,
#> #   Home_Away <chr>, Event_Time <dbl>, Is_Pens <lgl>, Event_Half <dbl>,
#> #   Event_Type <chr>, Event_Players <chr>, Score_Progression <chr>, …

Load FBref advanced match stats

load_fb_advanced_match_stats() can be used to load pre-scraped match summaries from FBref. This is the load function equivalent of fb_advanced_match_stats(). Not all leagues and stat types are supported.

## 2018 - current season for EPL
load_fb_advanced_match_stats(
  country = "ENG",
  gender = "M",
  tier = "1st",
  stat_type = "summary",
  team_or_player = "player"
)
#> # A tibble: 74,985 × 58
#>    MatchURL      League Match_Date Matchweek Home_Team Home_Formation Home_Score
#>    <chr>         <chr>  <chr>      <chr>     <chr>     <chr>               <dbl>
#>  1 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  2 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  3 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  4 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  5 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  6 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  7 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  8 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#>  9 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#> 10 https://fbre… Premi… 2017-08-11 Premier … Arsenal   3-4-3                   4
#> # ℹ 74,975 more rows
#> # ℹ 51 more variables: Home_xG <dbl>, Home_Goals <chr>,
#> #   Home_Yellow_Cards <chr>, Home_Red_Cards <chr>, Away_Team <chr>,
#> #   Away_Formation <chr>, Away_Score <dbl>, Away_xG <dbl>, Away_Goals <chr>,
#> #   Away_Yellow_Cards <chr>, Away_Red_Cards <chr>, Game_URL <chr>, Team <chr>,
#> #   Home_Away <chr>, Player <chr>, Player_Href <chr>, Player_Num <dbl>,
#> #   Nation <chr>, Pos <chr>, Age <chr>, Min <dbl>, Gls <dbl>, Ast <dbl>, …

## just 2019, for multiple leagues at the same time
load_fb_advanced_match_stats(
  country = c("ITA", "ESP"),
  gender = "M",
  tier = "1st",
  season_end_year = 2019,
  stat_type = "defense",
  team_or_player = "player"
)
#> # A tibble: 21,106 × 49
#>    MatchURL      League Match_Date Matchweek Home_Team Home_Formation Home_Score
#>    <chr>         <chr>  <chr>      <chr>     <chr>     <chr>               <dbl>
#>  1 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  2 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  3 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  4 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  5 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  6 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  7 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  8 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#>  9 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#> 10 https://fbre… Serie… 2018-08-18 Serie A … Chievo    4-3-3                   2
#> # ℹ 21,096 more rows
#> # ℹ 42 more variables: Home_xG <dbl>, Home_Goals <chr>,
#> #   Home_Yellow_Cards <chr>, Home_Red_Cards <chr>, Away_Team <chr>,
#> #   Away_Formation <chr>, Away_Score <dbl>, Away_xG <dbl>, Away_Goals <chr>,
#> #   Away_Yellow_Cards <chr>, Away_Red_Cards <chr>, Game_URL <chr>, Team <chr>,
#> #   Home_Away <chr>, Player <chr>, Player_Href <chr>, Player_Num <dbl>,
#> #   Nation <chr>, Pos <chr>, Age <chr>, Min <dbl>, Tkl_Tackles <dbl>, …

Load Understat

The following section demonstrates the different loading functions of Understat data.

Load League Shots

To be able to rapidly load pre-collected chooting locations for whole leagues, the load_understat_league_shots() functions is now available. Supported leagues on Understat are:

  • “EPL”
  • “La liga”
  • “Bundesliga”
  • “Serie A”
  • “Ligue 1”
  • “RFPL”

This is effectively the loading equivalent of the understat_league_season_shots() function, however rather than needing to be scraped a season at a time, this data loads rapidly for all seasons for the selected league since the 2014/15 seasons.

serie_a_shot_locations <- load_understat_league_shots(league = "Serie A")
dplyr::glimpse(serie_a_shot_locations)
#> Rows: 100,205
#> Columns: 22
#> $ league          <chr> "Serie_A", "Serie_A", "Serie_A", "Serie_A", "Serie_A",…
#> $ id              <dbl> 41439, 41444, 41445, 41446, 41451, 41452, 41461, 41462…
#> $ minute          <dbl> 2, 5, 7, 8, 19, 24, 76, 76, 0, 3, 3, 3, 5, 10, 15, 15,…
#> $ result          <chr> "MissedShots", "OwnGoal", "SavedShot", "MissedShots", …
#> $ X               <dbl> 0.845, 0.009, 0.896, 0.875, 0.813, 0.780, 0.780, 0.867…
#> $ Y               <dbl> 0.641, 0.539, 0.373, 0.661, 0.180, 0.374, 0.499, 0.520…
#> $ xG              <dbl> 0.009113184, 0.000000000, 0.019183254, 0.042726491, 0.…
#> $ player          <chr> "Maxi López", "Cristiano Biraghi", "Ezequiel Schelotto…
#> $ h_a             <chr> "h", "h", "h", "h", "h", "h", "h", "h", "a", "a", "a",…
#> $ player_id       <dbl> 1188, 1164, 3873, 1188, 1336, 3873, 716, 1188, 3848, 1…
#> $ situation       <chr> "OpenPlay", "FromCorner", "OpenPlay", "SetPiece", "Fro…
#> $ season          <dbl> 2014, 2014, 2014, 2014, 2014, 2014, 2014, 2014, 2014, …
#> $ shotType        <chr> "Head", "OtherBodyPart", "Head", "RightFoot", "LeftFoo…
#> $ match_id        <dbl> 5149, 5149, 5149, 5149, 5149, 5149, 5149, 5149, 5149, …
#> $ home_team       <chr> "Chievo", "Chievo", "Chievo", "Chievo", "Chievo", "Chi…
#> $ away_team       <chr> "Juventus", "Juventus", "Juventus", "Juventus", "Juven…
#> $ home_goals      <dbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, …
#> $ away_goals      <dbl> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, …
#> $ date            <chr> "2014-08-30 17:00:00", "2014-08-30 17:00:00", "2014-08…
#> $ player_assisted <chr> "Cristiano Biraghi", NA, "Nicolas Frey", "Ezequiel Sch…
#> $ lastAction      <chr> "Cross", "CrossNotClaimed", "Cross", "Pass", "Pass", "…
#> $ home_away       <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…