| .add_html_on_ice_players | R Documentation |
.add_html_on_ice_players() resolves HTML on-ice goalie and skater IDs,
matches them to API rows, and injects the resulting scalar on-ice columns
into play-by-play output.
.add_html_on_ice_players(
play_by_play,
game,
rosters = NULL,
home_team = NULL,
away_team = NULL,
html_rows = NULL
)
play_by_play |
data.frame play-by-play object |
game |
game ID |
rosters |
optional roster data.frame |
home_team |
optional home-team metadata |
away_team |
optional away-team metadata |
html_rows |
optional parsed HTML on-ice rows |
data.frame enriched with HTML-derived on-ice columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.