ss_get_same_day_team_games_lzy: ss_get_same_day_team_games_lzy

View source: R/mod_summary_functions_standings.R

ss_get_same_day_team_games_lzyR Documentation

ss_get_same_day_team_games_lzy

Description

Given the year and the SeasonGameId, find all games between the same two teams either earlier in the same day (when before is TRUE) or later in the same day (when before is FALSE). The result is a lazy query to the game_logs table.

Usage

ss_get_same_day_team_games_lzy(
  lzy_game_logs,
  year,
  season_game_id,
  before = TRUE
)

Arguments

lzy_game_logs

Lazy game logs table

year

Year

season_game_id

SeasonGameId

before

If TRUE, game games earlier in the day. If FALSE, later

Details

The result is normally empty, and is only interesting when there is a double-header.

Value

Lazy query


tor-gu/streakexplorer documentation built on Aug. 2, 2022, 8:22 p.m.