box_scores: NBA box scores

Description Usage Arguments Value See Also Examples

View source: R/box_scores.R

Description

Acquires specified box score type by game ID

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

1
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)

bonusrp/nbastatRR documentation built on Jan. 4, 2020, 9:10 p.m.