Learn R Programming

nbastatR (version 0.1.110202031)

get_seasons_metrics_league_leaders: League leaders by season

Description

Gets league leader data by specified input for specific seasons

Usage

get_seasons_metrics_league_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 data_frame

See Also

Other players: get_nba_player_injuries, get_players_bios, get_teams_players_seasons_summary_stats

Other leaders: get_teams_franchise_leaders

Examples

Run this code
# NOT RUN {
get_seasons_metrics_league_leaders(seasons = 2000:2005,
metric = "pts",
season_types = "Regular Season",
 modes = "PerGame",
 return_message = T)
# }

Run the code above in your browser using DataLab