pastseasons_df: Construct past seasons dataframe from fresh fantasy data

Description Usage Arguments Details Examples

Description

Converts the list returned by collect_ff into a dataframe with past performances of all current players in the game.

Usage

1
pastseasons_df(player_list, add_vars = NULL)

Arguments

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

Details

This function calls the players_helper function to provide summary data for the current season. The dataframe returned consists of:

Examples

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)

durtal/fantasysocceR documentation built on May 15, 2019, 6:01 p.m.