fantasysocceR

Description

The currentseason_df function converts the data found in the list returned by the collect_ff function when getting fresh data. The function returns a dataframe with the performances per gameweek for the players returned in the list.

Usage

currentseason_df(player_list, add_vars = NULL)

Arguments

param details
player_list the list of players returned by collect_ff
add_vars extra variables to add if desired

Example use

# convert list into dataframe
new_players_df <- currentseason_df(player_list = player_list)

# convert list into dataframe and add a couple of variables, points per game
new_players_df <- currentseason_df(player_list = player_list, add_vars = c("points_per_game"))