
Flag if the event belongs to the home team or not for all the events (plays) in a play-by-play
Source:R/Clean.R
flag_is_home.Rdflag_is_home() flags if the event belongs to the home team or not for
all the events (plays) in a play-by-play.
Arguments
- play_by_play
data.frame of play-by-play(s); see
gc_play_by_play()and/orwsc_play_by_play()for reference; must be untouched by non-nhlscraper functions
Examples
# May take >5s, so skip.
# \donttest{
test <- gc_play_by_play()
test_is_home_flagged <- flag_is_home(test)
# }