| strip_time_period | R Documentation |
strip_time_period() strip the timestamp and period number into the time
elapsed in the period and game for all the events (plays) in a play-by-play.
strip_time_period(play_by_play)
play_by_play |
data.frame of play-by-play(s); see |
data.frame with one row per event (play) and added columns
secondsElapsedInPeriod and secondsElapsedInGame
# May take >5s, so skip.
test <- gc_play_by_play()
test_game_id_stripped <- strip_game_id(test)
test_time_period_stripped <- strip_time_period(test_game_id_stripped)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.