Description Usage Arguments Details Examples
Converts the list returned by collect_ff into a dataframe with past performances of all current players in the game.
1 | pastseasons_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 points scored last season
id player id
name player name
value player value
pct percentage of fantasy teams player is selected by
season previous season
mins number of minutes played
goals goals scored
assists assists
cs clean sheets
og own goals
ga goals against
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
fin_val value at end of the season
ssn_pts total points for the season
1 2 3 4 5 6 | ## Not run:
# Collect fresh data
player_list <- collect_ff(n = 10)
pastseasons <- pastseasons_df(player_list)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.