Skip to contents

This function gets the player's various splits by measure type and season.

Usage

nba_career_splits(
  season,
  season_type = "Regular Season",
  measure_type = "Base",
  player_id,
  per_mode = "PerGame"
)

Arguments

season

A numeric value representing the season (e.g., 2024).

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.

measure_type

A character vector specifying the types of stats (default = "Base"). Valid options include:

  • "Base" - Traditional stats.

  • "Advanced" - Advanced stats.

  • "Usage" - Usage stats.

  • "Misc" - Misc stats.

  • "Scoring" - Scoring stats.

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 tibble with all splits totals