View source: R/player_functions.R
get_player_details | R Documentation |
This function fetches detailed, gameweek-by-gameweek information for the current season on selected players. If parameters left blank, the function fetches all current players - note that takes a while to load.
get_player_details(playerid = NULL, name = NULL, season = NULL)
playerid |
The player's ID. Can be found using get_player_id(). You can list multiple, e.g. with c(). Won't work with prior season's data. |
name |
Alternatively, the player's full name, as listed on the official Fantasy Premier League site (for instance: "Richarlison de Andrade", not "Richarlison"). If blank, the function fetches all players. |
season |
To retrieve prior season data, enter a 2-digit year corresponding to the start of the historical FPL season of interest (e.g. '17' for the 2017/2018 season). |
get_player_details(300) get_player_details(name="Virgil van Dijk")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.