collect_ff: Collect up-to-date fantasy football data

Description Usage Arguments Details

Description

Use this function sparingly!! It will collect fantasy football data from http://fantasy.premierleague.com, and will take a while to complete as it makes calls to the games website for the player data.

Usage

1
collect_ff(n = 600, specify_ids = NULL, .progress = "none")

Arguments

n

number of players (default = 600)

specify_ids

numeric vector, collect data for specific players using their id

.progress

progress bar - "text", "time", "tk", or "win"

Details

Users can specify the number of players they wish to collect data for by changing the n parameter. If n is greater than the number of players, the function will only return the number of players available, however it will attempt to find n players, so do not input large n. The number of players in the game is around 550, the default value of n is 600.

Alternatively, passing a numeric vector to the specify_ids parameter, it is possible to collect data for specific players (I am unsure if ids change during the season). This function takes some time to run, and returns a list which can then be turned into dataframes using other functions in the package, see players_df, pastseasons_df.


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