Learn R Programming

NBAloveR (version 0.1.3.3)

getStatsPerGame: Stats Per Game for a given player

Description

Function for getting given player's stats per game

Usage

getStatsPerGame(player, season, span = 1)

Arguments

player

Player name to fetch information for

season

Season number

span

Duration of season(s). Defaults 1.

Value

This function returns data.frame including columns:

  • G

  • Date

  • Age

  • Tm

  • Home

  • Opp

  • GS

  • MP

  • FG

  • FGA

  • FGP

  • 3PM

  • 3PA

  • 3PP

  • FT

  • FTA

  • FTP

  • ORB

  • DRB

  • TRB

  • AST

  • STL

  • BLK

  • TOV

  • PF

  • PTS

  • GmSc

Examples

Run this code
# NOT RUN {
RayAllen <- getStatsPerGame(player="Ray Allen", season=2008, span=1)
head(RayAllen)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab