Skip to contents

This function gets the player's various stats by measure type and aggregation method.

Usage

nba_profile_stats(
  season_type = "Regular Season",
  player_id,
  per_mode = "PerGame"
)

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.

Value

A list of tibbles with all profile stats