The [FPL$get_player_summary()] and [FPL$get_player_summaries()] methods return objects of class `PlayerSummary`.

Details

Information is taken from <https://fantasy.premierleague.com/api/element-summary/player_id/>.

Public fields

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.

Methods

Public methods


Method new()

Instantiate the `PlayerSummary` class.

Usage

PlayerSummary$new(player_summary)

Arguments

player_summary

`numeric(1)`. The player's id.

Returns

An R6 object of class `PlayerSummary`.

Examples

fpl <- FPL$new()
player_summary <- fpl$get_player_summary(250)


Method clone()

The objects of this class are cloneable with this method.

Usage

PlayerSummary$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

## ------------------------------------------------ ## Method `PlayerSummary$new` ## ------------------------------------------------ fpl <- FPL$new() player_summary <- fpl$get_player_summary(250)