The [FPL$get_player()] and [FPL$get_players()] methods return objects of class `Player`.
Information is taken from <https://fantasy.premierleague.com/api/bootstrap-static/>.
playerA `data.frame`. Player data for a single player.
fixturesA `data.frame`. The player's fixture list for the season.
historyA `data.frame`. The current season's data for a given player. Empty by default unless particular active bindings are called.
history_pastA `data.frame`. The player's summary data for previous seasons.
games_played`integer(1)`. The number of games the player has partaken in this season.
price`numeric(1)`. The player's in game price.
pp90`numeric(1)`. Points scored per 90 minutes.
ppm`numeric(1)`. Points scored per match.
ppmm`numeric(1)`. Points scored per match per £1M.
vapm`numeric(1)`. Value added per £1M.
new()Instantiate the `Player` class.
Player$new(player)
playerA `data.frame`. Player data for a single player.
An R6 object of class `Player`.
fpl <- FPL$new() player <- fpl$get_player(250)
print()Pretty printing of the the `Player`.
Player$print(...)
...Not used.
clone()The objects of this class are cloneable with this method.
Player$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Player$new` ## ------------------------------------------------ fpl <- FPL$new() player <- fpl$get_player(250)