Learn R Programming

nbastatR (version 0.1.110202031)

get_games_box_scores: NBA 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"), 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

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 data_frame

See Also

Other game: get_game_logs, get_games_fanduel_summary, get_games_pbp_win_probablity

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"), join_data = TRUE, assign_to_environment = TRUE, return_message = TRUE)
# }

Run the code above in your browser using DataLab