box_scores: NBA box scores

View source: R/box_scores.R

box_scoresR Documentation

NBA box scores

Description

Acquires specified box score type by game ID

Usage

box_scores(
  game_ids = NULL,
  league = "NBA",
  box_score_types = c("Traditional", "Advanced", "Scoring", "Misc", "Usage",
    "Four Factors", "hustle", "tracking"),
  result_types = c("player", "team"),
  join_data = TRUE,
  assign_to_environment = TRUE,
  return_message = TRUE
)

Arguments

game_ids

vector of game ids

box_score_types

vector of box score types options include

  • traditional

  • advanced

  • scoring

  • misc

  • usage

  • four factors

  • tracking

  • defense

  • matchups

  • hustle

result_types

vector of result types options include

  • team - Team statistics

  • player - player

join_data

if TRUE joins the underlying table data

assign_to_environment

if TRUE assigns a data frame for each table to the environment starting with data

return_message

if TRUE returns a message

Value

a tibble

See Also

Other game: fanduel_summary(), game_logs(), win_probability()

Examples

box_scores(game_ids = c(21700002, 21700003), box_score_types = c("Traditional", "Advanced", "Scoring", "Misc", "Usage", "Four Factors", "Tracking"), result_types = c("player", "team"), join_data = TRUE, assign_to_environment = TRUE, return_message = TRUE)

abresler/nbastatR documentation built on Nov. 9, 2023, 2:33 p.m.