metrics_leaders: League leaders by season

View source: R/league_leaders.R

metrics_leadersR Documentation

League leaders by season

Description

Gets league leader data by specified input for specific seasons

Usage

metrics_leaders(
  seasons = 2017:2018,
  metric = "pts",
  season_types = "Regular Season",
  modes = c("PerGame", "Totals"),
  return_message = TRUE,
  nest_data = FALSE
)

Arguments

seasons

vector of seasons

metric

name of metric to sort on

  • pts

  • min

  • ast

  • treb

  • oreb

  • dreb

  • stl

  • tov

  • fg3

  • fga

  • fgm

  • fta

  • ftm

  • pf

  • eff

season_types

type of season

  • Regular Season

  • Playoffs

  • Pre Season

modes

mode of search

  • Totals

  • Per Game

  • Per48

return_message

if TRUE returns a message

nest_data

if TRUE returns a nested data frame

Value

a tibble

See Also

Other players: players_bios(), teams_players_stats()

Other leaders: franchise_leaders()

Examples

metrics_leaders(seasons = 2000:2005,
metric = "pts",
season_types = "Regular Season",
 modes = "PerGame",
 return_message = T)

abresler/nbastatR documentation built on Nov. 9, 2023, 2:33 p.m.