Description Usage Arguments Details
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.
1 | collect_ff(n = 600, specify_ids = NULL, .progress = "none")
|
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" |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.