Skip to contents

This function retrieves result information for a specific Premier League teams.

Usage

get_team_results(team)

Arguments

team

A character vector of team abbreviations.

Value

A tibble (data frame) with result information including game details.

Examples

get_team_results(c("ARS", "CHE"))
#> # A tibble: 8 × 9
#>   gw_id game_id team_h team_h_score team_a team_a_score stats        
#>   <int>   <int> <chr>         <int> <chr>         <int> <list>       
#> 1     1       2 ARS               2 NFO               1 <df [10 × 3]>
#> 2     1       9 CHE               1 LIV               1 <df [10 × 3]>
#> 3     2      12 CRY               0 ARS               1 <df [10 × 3]>
#> 4     2      19 WHU               3 CHE               1 <df [10 × 3]>
#> 5     3      21 ARS               2 FUL               2 <df [10 × 3]>
#> 6     3      26 CHE               3 LUT               0 <df [10 × 3]>
#> 7     4      31 ARS               3 MUN               1 <df [10 × 3]>
#> 8     4      35 CHE               0 NFO               1 <df [10 × 3]>
#> # ℹ 2 more variables: kickoff_time <dttm>, fpl_game_code <int>