Skip to contents

Loading version of fb_match_summary. Only some leagues available.

Usage

load_fb_match_summary(country, gender, tier, season_end_year = NA)

Arguments

country

the three character country code

gender

gender of competition, either "M" or "F"

tier

the tier of the league, ie '1st' for the EPL or '2nd' for the Championship and so on

season_end_year

the year(s) the season concludes

Value

returns a dataframe

Examples

# \donttest{
try({
load_fb_match_summary(
  country = "ENG",
  gender = "M",
  tier = "1st"
)

load_fb_match_summary(
  country = c("ITA", "ESP"),
  gender = "M",
  tier = "1st",
  season_end_year = 2019
)
})
#> → Data last updated 2024-11-12 18:01:01.09619498252869 UTC
#> → Data last updated 2024-11-12 18:03:50.5163819789886 UTC
#> # 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>, …
# }