bart_player_leaderboard: Player Leaderboard

View source: R/bart_player_leaderboard.R

bart_player_leaderboardR Documentation

Player Leaderboard

Description

Returns season or career stat leaders for a given statistic

Usage

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,
  ...
)

Arguments

stat

Stat to return (see details)

year

Filters to yer – only with season span

agg

Return mean or sum data

span

Return season or career data

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.

Details

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

Value

Returns a tibble.

Examples

try(bart_player_leaderboard('pts'))

toRvik documentation built on Nov. 10, 2022, 5:50 p.m.