Find MLB Seasons
Arguments
- sport_id
The sport_id to return season information for.
- with_game_type_dates
with_game_type_dates to return season information
Value
Returns a tibble with the following columns:
col_name | types |
season_id | character |
has_wildcard | logical |
pre_season_start_date | character |
pre_season_end_date | character |
season_start_date | character |
spring_start_date | character |
spring_end_date | character |
regular_season_start_date | character |
last_date1st_half | character |
all_star_date | character |
first_date2nd_half | character |
regular_season_end_date | character |
post_season_start_date | character |
post_season_end_date | character |
season_end_date | character |
offseason_start_date | character |
off_season_end_date | character |
season_level_gameday_type | character |
game_level_gameday_type | character |
qualifier_plate_appearances | numeric |
qualifier_outs_pitched | integer |
Examples
# \donttest{
mlb_seasons(sport_id = 1)
#> ── MLB Seasons data from MLB.com ──────────────────── baseballr 1.2.0 ──
#> ℹ Data updated: 2022-04-30 07:16:34 UTC
#> # A tibble: 1 × 21
#> season_id has_wildcard pre_season_start_date pre_season_end_date
#> <chr> <lgl> <chr> <chr>
#> 1 2022 TRUE 2022-01-01 2022-03-16
#> # … with 17 more variables: season_start_date <chr>,
#> # spring_start_date <chr>, spring_end_date <chr>,
#> # regular_season_start_date <chr>, last_date1st_half <chr>,
#> # all_star_date <chr>, first_date2nd_half <chr>,
#> # regular_season_end_date <chr>, post_season_start_date <chr>,
#> # post_season_end_date <chr>, season_end_date <chr>,
#> # offseason_start_date <chr>, off_season_end_date <chr>, …
# }