Description Usage Arguments Details Examples
Converts the list returned by collect_ff into a summary dataframe with one row for each player. The default dataframe consists of 7 variables (more can be added, check details for available extra variables):
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
1 | players_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 |
The extra variables available are below, some are self-explanatory, while others I have no idea what they are (at the moment):
first_name
second_name
status player status (available, or not)
chance_of_playing_this_round
chance_of_playing_next_round
value_form
value_season
cost_change_start
cost_change_event
cost_change_start_fall
cost_change_event_fall
in_dreamteam
dreamteam_count
form
transfers_out
transfers_in
transfers_out_event
transfers_in_event
event_points
points_per_game
ep_this
ep_next
special
minutes
goals_scored
assists
clean_sheets
goals_conceded
own_goals
penalties_saved
penalties_missed
yellow_cards
red_cards
saves
bonus
ea_index
bps
element_type
team
1 2 3 4 5 6 | ## Not run:
# Collect fresh data
player_list <- collect_ff(n = 10)
players <- players_df(player_list)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.