dot-add_html_on_ice_players: Add HTML-derived on-ice players to play-by-play

.add_html_on_ice_playersR Documentation

Add HTML-derived on-ice players to play-by-play

Description

.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.

Usage

.add_html_on_ice_players(
  play_by_play,
  game,
  rosters = NULL,
  home_team = NULL,
  away_team = NULL,
  html_rows = NULL
)

Arguments

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

Value

data.frame enriched with HTML-derived on-ice columns


nhlscraper documentation built on June 29, 2026, 1:06 a.m.