getStatsLeader: Stats Leader

View source: R/leaders.R

getStatsLeaderR Documentation

Stats Leader

Description

Stats Leader data

Usage

getStatsLeader(
  stats_type = c("PTS", "G", "MP", "FG", "FT", "TRB", "AST", "STL", "BLK", "TOV", "PF",
    "FG3"),
  period = c("career", "season", "game")
)

Arguments

stats_type

Stats type. PTS, G, MP, FG, FT, TRB, AST, STL, BLK, TOV, PF or FG3

period

Period. career, season or game

Value

This function returns data.frame including columns:

  • "Player" - Player Name

  • "Season" - Season number

  • "stats" - Stats Type

  • "value" - Value of record

  • "period" - Period. career, season or game.

Author(s)

Koki Ando <koki.25.ando@gmail.com>

See Also

https://www.basketball-reference.com/leaders/

Examples

## Not run: 
 pts_leader = getStatsLeader(stats_type = "PTS", period = "season")
 head(pts_leader)

## End(Not run)


koki25ando/NBAloveR documentation built on March 21, 2022, 4:30 p.m.