Learn R Programming

nbastatR (version 0.1.11002)

get_games_box_scores: Get games box scores

Description

Acquires specified box score type by game ID

Usage

get_games_box_scores(game_ids = NULL, box_score_types = c("traditional",
  "advanced", "scoring", "misc", "usage", "four factors", "hustle", "tracking"),
  result_types = c("player", "team"), 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

result_types

vector of result types options include

  • team - Team statistics

  • player - player

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 data_frame

Examples

Run this code
# NOT RUN {
get_games_box_scores(game_ids = c(21700002, 21700003), box_score_types = c("traditional", "advanced", "scoring", "misc", "usage", "four factors", "tracking"), result_types = c("player", "team"), assign_to_environment = TRUE, return_message = TRUE)
# }

Run the code above in your browser using DataLab