The [FPL$get_player_summary()] and [FPL$get_player_summaries()] methods return objects of class `PlayerSummary`.
Information is taken from <https://fantasy.premierleague.com/api/element-summary/player_id/>.
fixtures
A `data.frame`. The player's fixture list for the season.
history
A `data.frame`. The player's data for the current seasom.
history_past
A `data.frame`. The player's summary data for previous seasons.
new()
Instantiate the `PlayerSummary` class.
PlayerSummary$new(player_summary)
player_summary
`numeric(1)`. The player's id.
An R6 object of class `PlayerSummary`.
fpl <- FPL$new() player_summary <- fpl$get_player_summary(250)
clone()
The objects of this class are cloneable with this method.
PlayerSummary$clone(deep = FALSE)
deep
Whether to make a deep clone.
## ------------------------------------------------ ## Method `PlayerSummary$new` ## ------------------------------------------------ fpl <- FPL$new() player_summary <- fpl$get_player_summary(250)