You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to load all plays from all games in a particular season from a single particular team (e.g. all plays from the Flyers 2021-2022 season).
Currently nhl_game_feed() only accepts a single game ID and loads a list of data frames (all plays, penalty plays, player box...etc.)
Is there a way to pass a list of game ID's and arguments specifying which data frames to load (i.e. just all plays or just penalty plays)?
Looping through a list of game ID's and calling nhl_game_feed() takes a lot of resources both from the loop and also loading extra data frames I am not interested in. Any way around this?
I also thought I could use load_nhl_pbp() and filter based on home or away team. Is there a way to get this information from the fields in the play by play data?