Learn R Programming

NBAloveR (version 0.1.3.3)

getStatsLeader: 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

  • Season

  • stats

  • value

  • period

See Also

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

Examples

Run this code
# NOT RUN {
 pts_leader = getStatsLeader(stats_type = "PTS", period = "season")
 head(pts_leader)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab