| .optional_html_pbp_rows_from_response | R Documentation |
.optional_html_pbp_rows_from_response() parses a fetched HTML play-by-play
response when it succeeded and otherwise returns an empty data frame.
.optional_html_pbp_rows_from_response(
resp,
game,
rosters,
home_team_id,
away_team_id,
home_abbrev,
away_abbrev
)
resp |
response or failure object |
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 rows or an empty data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.