get_game_boxscore | R Documentation |
get_game_boxscore()
retrieves information on each player for a given set of game
, team
, and player_type
, including but not limited to their ID, name, sweater number, goals, assists, +/-, hits, blocks, shots-on-goal, giveaways, takeaways, time on ice, and number of shifts. Access get_games()
for game
reference.
get_game_boxscore(game = 2024020602, team = "home", player_type = "forwards")
game |
integer Game ID |
team |
string of 'home' or 'away' |
player_type |
string of 'forwards', 'defense', or 'goalies' |
tibble with one row per player
boxscore_2024030411_FLA_defensemen <- get_game_boxscore(
game=2024030411,
team='away',
player_type='defense'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.