Description Usage Arguments Details Examples
Converts the list returned by collect_ff into a dataframe with performances per gameweek for all current players in the game.
1 | currentseason_df(player_list, add_vars = NULL)
|
player_list |
list of players (the list returned by collect_ff) |
add_vars |
extra variables to add if desired, see details of players_df for available extra variables |
This function calls the players_helper function to provide summary data for the current season. The dataframe returned consists of:
pos player pos
team player team
pts total pts this season
id player id
name player name
value player value
pct percentage of fantasy teams player is selected by
date fixture date
gw gameweek
opp opponent, home/away, and score
mins minutes played
goals goals scored
assists assists
cs clean sheet
ga goals against
og own goals
pens_svd penalties saved
pens_msd penalties missed
yel yellow cards
red red cards
saves saves
bonus bonus points
ea_ppi EA sports player performance index
bps bonus points system
gw_val gameweek value
gw_pts gameweek points
1 2 3 4 5 6 | ## Not run:
# Collect fresh data
player_list <- collect_ff(n = 10)
players <- currentseason_df(player_list)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.