Acquires specified box score type by game ID

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

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)