This function retrieves information about FPL teams, such as team IDs, names, abbreviations, performance, and strength indicators using the Fantasy Premier League API.
Value
A tibble (data frame) with the following columns:
team_fpl_code
The FPL code of the team.
team_name
The name of the team.
team_abb
The abbreviation of the team.
season_id
The ID of the season.
form
The team's recent form.
played
The number of matches played.
win
The number of matches won.
draw
The number of matches drawn.
loss
The number of matches lost.
points
The total number of points earned.
league_position
The team's current league position.
strength
The team's overall strength.
strength_overall_home
The team's home strength overall.
strength_defence_home
The team's home defensive strength.
strength_attack_home
The team's home attacking strength.
strength_overall_away
The team's away strength overall.
strength_defence_away
The team's away defensive strength.
strength_attack_away
The team's away attacking strength.
Examples
fpl_team_info()
#> # A tibble: 20 × 18
#> team_fpl_code team_name team_abb season_id form played win draw loss
#> <int> <chr> <chr> <int> <lgl> <int> <int> <int> <int>
#> 1 3 Arsenal ARS 1 NA 0 0 0 0
#> 2 7 Aston Villa AVL 2 NA 0 0 0 0
#> 3 91 Bournemouth BOU 3 NA 0 0 0 0
#> 4 94 Brentford BRE 4 NA 0 0 0 0
#> 5 36 Brighton BHA 5 NA 0 0 0 0
#> 6 90 Burnley BUR 6 NA 0 0 0 0
#> 7 8 Chelsea CHE 7 NA 0 0 0 0
#> 8 31 Crystal Pala… CRY 8 NA 0 0 0 0
#> 9 11 Everton EVE 9 NA 0 0 0 0
#> 10 54 Fulham FUL 10 NA 0 0 0 0
#> 11 14 Liverpool LIV 11 NA 0 0 0 0
#> 12 102 Luton LUT 12 NA 0 0 0 0
#> 13 43 Man City MCI 13 NA 0 0 0 0
#> 14 1 Man Utd MUN 14 NA 0 0 0 0
#> 15 4 Newcastle NEW 15 NA 0 0 0 0
#> 16 17 Nott'm Forest NFO 16 NA 0 0 0 0
#> 17 49 Sheffield Utd SHU 17 NA 0 0 0 0
#> 18 6 Spurs TOT 18 NA 0 0 0 0
#> 19 21 West Ham WHU 19 NA 0 0 0 0
#> 20 39 Wolves WOL 20 NA 0 0 0 0
#> # ℹ 9 more variables: points <int>, league_position <int>, strength <int>,
#> # strength_overall_home <int>, strength_defence_home <int>,
#> # strength_attack_home <int>, strength_overall_away <int>,
#> # strength_defence_away <int>, strength_attack_away <int>