| flag_is_rush | R Documentation |
flag_is_rush() flags if the shot attempt is a rush attempt or not for all
the shots in a play-by-play.
flag_is_rush(play_by_play)
play_by_play |
data.frame of play-by-play(s); see |
data.frame with one row per event (play) and added isRush column
# May take >5s, so skip.
test <- gc_play_by_play()
test_is_home_flagged <- flag_is_home(test)
test_game_id_stripped <- strip_game_id(test_is_home_flagged)
test_time_period_stripped <- strip_time_period(test_game_id_stripped)
test_is_rush_flagged <- flag_is_rush(test_time_period_stripped)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.