View source: R/bart_player_leaderboard.R
bart_player_leaderboard | R Documentation |
Returns season or career stat leaders for a given statistic
bart_player_leaderboard( stat = NULL, year = NULL, agg = "mean", span = "career", num_players = 25, min_games = NULL, min_minutes = NULL, exp = NULL, team = NULL, conf = NULL, id = NULL, ... )
stat |
Stat to return (see details) |
year |
Filters to yer – only with |
agg |
Return |
span |
Return |
num_players |
Number of players to return (defaults to 25) |
min_games |
Minimum games |
min_minutes |
Minimum minutes |
exp |
Experience to filter |
team |
Team to filter |
conf |
Conference to filter |
id |
Player id |
... |
Other API parameters. Used for future expansion. |
Available statistics to pass through to stat
:
stat | agg |
min | both |
pts | both |
fg_pct | mean |
efg | mean |
ts | mean |
two_m | both |
two_a | both |
three_m | both |
three_a | both |
ftm | both |
fta | both |
dunk_m | both |
dunk_a | both |
rim_m | both |
rim_a | both |
mid_m | both |
mid_a | both |
oreb | both |
dreb | both |
reb | both |
ast | both |
tov | both |
ast_tov | mean |
stl | both |
blk | both |
pf | both |
ortg | mean |
usg | mean |
or_pct | mean |
dr_pct | mean |
ast_pct | mean |
to_pct | mean |
stl_pct | mean |
blk_pct | mean |
bpm | mean |
obpm | mean |
dbpm | mean |
net | mean |
Returns a tibble.
try(bart_player_leaderboard('pts'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.