| .parse_html_pbp_response | R Documentation |
.parse_html_pbp_response() converts an already-fetched HTML play-by-play
response into parsed on-ice rows.
.parse_html_pbp_response(
resp,
game,
rosters,
home_team_id,
away_team_id,
home_abbrev,
away_abbrev
)
resp |
httr2 response object for the HTML report |
game |
game ID |
rosters |
roster data.frame from play-by-play metadata |
home_team_id |
home-team ID |
away_team_id |
away-team ID |
home_abbrev |
home-team abbreviation |
away_abbrev |
away-team abbreviation |
data.frame of parsed HTML play-by-play rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.