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,
...
)Returns a tibble.
Stat to return (see details)
Filters to yer -- only with season span
Return mean or sum data
Return season or career data
Number of players to return (defaults to 25)
Minimum games
Minimum minutes
Experience to filter
Team to filter
Conference to filter
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 |
try(bart_player_leaderboard('pts'))
Run the code above in your browser using DataLab