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_codeThe FPL code of the team.
team_nameThe name of the team.
team_abbThe abbreviation of the team.
season_idThe ID of the season.
formThe team's recent form.
playedThe number of matches played.
winThe number of matches won.
drawThe number of matches drawn.
lossThe number of matches lost.
pointsThe total number of points earned.
league_positionThe team's current league position.
strengthThe team's overall strength.
strength_overall_homeThe team's home strength overall.
strength_defence_homeThe team's home defensive strength.
strength_attack_homeThe team's home attacking strength.
strength_overall_awayThe team's away strength overall.
strength_defence_awayThe team's away defensive strength.
strength_attack_awayThe 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>