This function gets the player's various stats by measure type and aggregation method.
Arguments
- season_type
A character string specifying the type of season (default = "Regular Season"). Valid options include:
"Pre Season" - Pre Season games.
"Regular Season" - Regular Season games.
"Playoffs" - Playoff games.
"All Star" - All Star games.
"IST" - NBA Cup games.
"PlayIn" - Play In games.
- player_id
A numeric or character vector representing the player's ID
- per_mode
A character string representing the aggregation method (default = "PerGame") Valid options include:
"PerGame" - Stats on per game basis.
"Totals" - Stat totals.