Get Fantasy Premier League Headline Statistics of All Players.
Source:R/player-info.R
fpl_player_stats.Rd
This function retrieves all players' headline statistics from the Fantasy Premier League API and processes the data into a tibble with relevant player information and statistics.
Value
A tibble containing player statistics with the following columns:
player_season_id
Player ID for the current season.
player_name
Name of the player.
selected_pct
Percentage of FPL managers who have selected the player.
selected_rank
Rank of the player based on selected percentage.
selected_rank_type
Type of rank for selected percentage.
current_price
Current price of the player in FPL.
now_cost_rank
Rank of the player based on current price.
now_cost_rank_type
Type of rank for current price.
...
(additional columns with various player statistics).
Examples
fpl_player_stats()
#> # A tibble: 714 × 53
#> player_season_id player_name selected_pct selected_rank selected_rank_type
#> <int> <chr> <dbl> <int> <int>
#> 1 1 Balogun 0.004 245 41
#> 2 2 Cédric 0.004 255 100
#> 3 3 M.Elneny 0.001 451 148
#> 4 4 Fábio Vieira 0.001 377 119
#> 5 5 Gabriel 0.141 28 8
#> 6 6 Havertz 0.021 119 35
#> 7 8 G.Jesus 0.027 105 19
#> 8 9 Jorginho 0.002 329 100
#> 9 10 Kiwior 0.001 424 165
#> 10 11 Marquinhos 0.001 470 160
#> # ℹ 704 more rows
#> # ℹ 48 more variables: current_price <dbl>, now_cost_rank <int>,
#> # now_cost_rank_type <int>, cost_change_start <dbl>,
#> # cost_change_start_fall <dbl>, cost_change_event <dbl>,
#> # cost_change_event_fall <dbl>, total_transfers_in <int>,
#> # gw_transfers_in <int>, transfers_out <int>, transfers_out_event <int>,
#> # minutes <int>, starts <int>, starts_per_90 <dbl>, total_points <int>, …