View source: R/get_season_data.R
get_season_data | R Documentation |
Function which gives access to higher level data about each player, aggregated at a season level.
get_season_data(players)
players |
Either a character vector of player names or a numeric vector of player ID's which can be obtained from the 'id_lookup' table |
A data frame with one row for each player chosen and 27 variables as follows:
Information about the player
Cost (in £m) at the start of the season (or when introduced to the game)
Cost at the time of calling the function (in £m)
How many times this player has appeared in the dreamteam (team of the gameweek)
As calculated by pls based on games in the last 30 days
Average points per Gameweek participated in
Percent of managers who's team this player is selected in (at the time of running the function)
One of: Available, Injured - won't play, Injured - may play, Suspended or Unavailable
Total fpl points acrued by this player over the season to date
Statistics relating to the players performance over the whole season
Total fpl bonus points earned over the whole season
Points awarded to this player by the fpl bonus point system over the season
Current values from fpl algorithms
# Don't run as will fail for missing players in the future #get_season_data(301) #get_season_data('John Fleck') #get_season_data(350:352)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.