Skip to contents

Find game_pk values for professional baseball games (major and minor leagues) that are tied

Usage

mlb_schedule_games_tied(season = 2021, game_type = "S")

Arguments

season

The season for which you want to find game_pk values for MLB games

game_type

game_type to return schedule information for all tied games in a particular game_type

game_type_idgame_type_description
SSpring Training
RRegular Season
FWild Card Game
DDivision Series
LLeague Championship Series
WWorld Series
CChampionship
NNineteenth Century Series
PPlayoffs
AAll-Star Game
IIntrasquad
EExhibition

Value

Returns a tibble that includes game_pk values and additional information for games scheduled or played

col_nametypes
datecharacter
total_itemsinteger
total_eventsinteger
total_gamesinteger
total_games_in_progressinteger
game_pkinteger
linkcharacter
game_typecharacter
seasoncharacter
game_datecharacter
official_datecharacter
game_numberinteger
public_facinglogical
double_headercharacter
gameday_typecharacter
tiebreakercharacter
calendar_event_idcharacter
season_displaycharacter
day_nightcharacter
scheduled_inningsinteger
reverse_home_away_statuslogical
inning_break_lengthinteger
games_in_seriesinteger
series_game_numberinteger
series_descriptioncharacter
record_sourcecharacter
if_necessarycharacter
if_necessary_descriptioncharacter
status_abstract_game_statecharacter
status_coded_game_statecharacter
status_detailed_statecharacter
status_status_codecharacter
status_start_time_tbdlogical
status_reasoncharacter
status_abstract_game_codecharacter
teams_away_split_squadlogical
teams_away_series_numberinteger
teams_away_league_record_winsinteger
teams_away_league_record_lossesinteger
teams_away_league_record_pctcharacter
teams_away_team_idinteger
teams_away_team_namecharacter
teams_away_team_linkcharacter
teams_home_split_squadlogical
teams_home_series_numberinteger
teams_home_league_record_winsinteger
teams_home_league_record_lossesinteger
teams_home_league_record_pctcharacter
teams_home_team_idinteger
teams_home_team_namecharacter
teams_home_team_linkcharacter
venue_idinteger
venue_namecharacter
venue_linkcharacter
content_linkcharacter
is_tielogical
descriptioncharacter
teams_away_scoreinteger
teams_away_is_winnerlogical
teams_home_scoreinteger
teams_home_is_winnerlogical
reschedule_datecharacter
reschedule_game_datecharacter
rescheduled_fromcharacter
rescheduled_from_datecharacter
resume_datecharacter
resume_game_datecharacter
resumed_fromcharacter
resumed_from_datecharacter
eventslist

Examples

# \donttest{
  try(mlb_schedule_games_tied(season = 2021))
#> ── MLB Schedule - Games Tied data from MLB.com ────── baseballr 1.6.0 ──
#>  Data updated: 2024-01-15 11:30:38 UTC
#> # A tibble: 46 × 60
#>    date      total_items total_events total_games total_games_in_progr…¹
#>    <chr>           <int>        <int>       <int>                  <int>
#>  1 2021-02-…           1            0           1                      0
#>  2 2021-03-…           4            0           4                      0
#>  3 2021-03-…           4            0           4                      0
#>  4 2021-03-…           4            0           4                      0
#>  5 2021-03-…           4            0           4                      0
#>  6 2021-03-…           3            0           3                      0
#>  7 2021-03-…           3            0           3                      0
#>  8 2021-03-…           3            0           3                      0
#>  9 2021-03-…           2            0           2                      0
#> 10 2021-03-…           2            0           2                      0
#> # ℹ 36 more rows
#> # ℹ abbreviated name: ¹​total_games_in_progress
#> # ℹ 55 more variables: game_pk <int>, game_guid <chr>, link <chr>,
#> #   game_type <chr>, season <chr>, game_date <chr>,
#> #   official_date <chr>, is_tie <lgl>, game_number <int>,
#> #   public_facing <lgl>, double_header <chr>, gameday_type <chr>,
#> #   tiebreaker <chr>, calendar_event_id <chr>, season_display <chr>, …
# }