Learn R Programming

toRvik (version 1.1.1)

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

Value

Returns a tibble.

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:

statagg
minboth
ptsboth
fg_pctmean
efgmean
tsmean
two_mboth
two_aboth
three_mboth
three_aboth
ftmboth
ftaboth
dunk_mboth
dunk_aboth
rim_mboth
rim_aboth
mid_mboth
mid_aboth
orebboth
drebboth
rebboth
astboth
tovboth
ast_tovmean
stlboth
blkboth
pfboth
ortgmean
usgmean
or_pctmean
dr_pctmean
ast_pctmean
to_pctmean
stl_pctmean
blk_pctmean
bpmmean
obpmmean
dbpmmean
netmean

Examples

Run this code
try(bart_player_leaderboard('pts'))

Run the code above in your browser using DataLab