Find game_pk values for professional baseball postseason series games (major and minor leagues)
Source:R/mlb_schedule_postseason_series.R
mlb_schedule_postseason_series.Rd
Find game_pk values for professional baseball postseason series games (major and minor leagues)
Usage
mlb_schedule_postseason_series(
season = 2021,
game_type = NULL,
series_number = NULL,
sport_id = 1,
team_id = NULL
)
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
- series_number
The Series number to return schedule information for all tied games in a particular series number
- sport_id
The sport_id to return schedule information for.
- team_id
The team_id to return schedule information for.
game_type_id game_type_description S Spring Training R Regular Season F Wild Card Game D Division Series L League Championship Series W World Series C Championship N Nineteenth Century Series P Playoffs A All-Star Game I Intrasquad E Exhibition
Value
Returns a tibble that includes game_pk values and additional information for games scheduled or played
col_name | types |
total_items | integer |
total_games | integer |
total_games_in_progress | integer |
game_pk | integer |
link | character |
game_type | character |
season | character |
game_date | character |
official_date | character |
is_tie | logical |
is_featured_game | logical |
game_number | integer |
public_facing | logical |
double_header | character |
gameday_type | character |
tiebreaker | character |
calendar_event_id | character |
season_display | character |
day_night | character |
description | character |
scheduled_innings | integer |
reverse_home_away_status | logical |
inning_break_length | integer |
games_in_series | integer |
series_game_number | integer |
series_description | character |
record_source | character |
if_necessary | character |
if_necessary_description | character |
is_default_game | logical |
status_abstract_game_state | character |
status_coded_game_state | character |
status_detailed_state | character |
status_status_code | character |
status_start_time_tbd | logical |
status_abstract_game_code | character |
teams_away_score | integer |
teams_away_is_winner | logical |
teams_away_split_squad | logical |
teams_away_series_number | integer |
teams_away_league_record_wins | integer |
teams_away_league_record_losses | integer |
teams_away_league_record_pct | character |
teams_away_team_id | integer |
teams_away_team_name | character |
teams_away_team_link | character |
teams_home_score | integer |
teams_home_is_winner | logical |
teams_home_split_squad | logical |
teams_home_series_number | integer |
teams_home_league_record_wins | integer |
teams_home_league_record_losses | integer |
teams_home_league_record_pct | character |
teams_home_team_id | integer |
teams_home_team_name | character |
teams_home_team_link | character |
venue_id | integer |
venue_name | character |
venue_link | character |
content_link | character |
reschedule_date | character |
reschedule_game_date | character |
rescheduled_from | character |
rescheduled_from_date | character |
status_reason | character |
sort_order | integer |
series_id | character |
series_sort_number | integer |
series_is_default | logical |
series_game_type | character |
Examples
# \donttest{
try(mlb_schedule_postseason_series(season = 2021, sport_id = 1))
#> ── MLB Schedule - Post-season Series data from MLB.com ─────────────────
#> ℹ Data updated: 2024-04-13 21:56:44 UTC
#> # A tibble: 38 × 70
#> total_items total_games total_games_in_progress game_pk game_guid
#> <int> <int> <int> <int> <chr>
#> 1 6 6 0 660897 c4148dd0-dc0…
#> 2 6 6 0 660908 8644ecec-18e…
#> 3 6 6 0 660910 404871b2-3eb…
#> 4 6 6 0 660902 d8d931dc-494…
#> 5 6 6 0 660911 ad3ef28d-964…
#> 6 6 6 0 660906 35a3ffd6-2d4…
#> 7 1 1 0 660938 42ec699b-0d4…
#> 8 1 1 0 660937 c4cc7a37-663…
#> 9 5 5 0 660936 99c5d8e9-125…
#> 10 5 5 0 660934 0e6aa0d8-ec6…
#> # ℹ 28 more rows
#> # ℹ 65 more variables: link <chr>, game_type <chr>, season <chr>,
#> # game_date <chr>, official_date <chr>, is_tie <lgl>,
#> # is_featured_game <lgl>, game_number <int>, public_facing <lgl>,
#> # double_header <chr>, gameday_type <chr>, tiebreaker <chr>,
#> # calendar_event_id <chr>, season_display <chr>, day_night <chr>,
#> # description <chr>, scheduled_innings <int>, …
# }