list_players | R Documentation |
Filter fantasy players by their position, availability, professional team, and/or injury status. Sort and limit the responses in the same way as is done in the ESPN Fantasy Football website.
list_players(
leagueId = ffl_id(),
sort = "ROST",
position = NULL,
status = "AVAILABLE",
injured = NULL,
proTeam = NULL,
scoreType = c("STANDARD", "PPR"),
limit = 50
)
leagueId |
Numeric league ID or ESPN fantasy page URL. Defaults to
|
sort |
The column from which to sort the data. Options match those on the ESPN website:
|
position |
Abbreviation of player positions to filter,
|
status |
Availability status of player, one or more from:
|
injured |
Whether to return only injured or healthy players. Use |
proTeam |
The abbreviation or ID of the professional team from which
players should be returned. See |
scoreType |
The type of scoring used: "STANDARD" or "PPR." |
limit |
The limit of players to return. Use |
A data frame of players.
Other player functions:
all_players()
,
player_info()
,
player_news()
,
player_outlook()
,
recent_activity()
,
transaction_counter()
list_players("42654852", proTeam = "Mia", sort = "START", limit = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.