get_box_score: Gets box score scoring summary data

Description Usage Arguments Examples

View source: R/get_box_score.R

Description

Returns a data frame of the box score scoring summary (including goal, primary assist, and secondary assist) for specified URL.

Usage

1
get_box_score(..., progress = TRUE)

Arguments

...

Function takes an object from get_schedule(). Function requires a url, league, and season. Additional data may be supplied. All of this information comes directly from get_schedule().

progress

Sets a Progress Bar. Defaults to TRUE.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Use get_schedule() to get the games and URLs desired
games <- get_schedule("OHL", "2018-19")

## Easy peasy get box score scoring summary data
get_box_score(games)

## If you want to see 1 game, try using dplyr::slice to only select the 1st game
games %>% 
  slice(1) %>% 
  get_box_score()

Dooms31/nojhl documentation built on Oct. 9, 2020, 2:27 a.m.