Learn R Programming

baseballr (version 1.5.0)

mlb_seasons: Find MLB Seasons

Description

Find MLB Seasons

Usage

mlb_seasons(sport_id = 1, with_game_type_dates = TRUE)

Value

Returns a tibble with the following columns:

col_nametypes
season_idcharacter
has_wildcardlogical
pre_season_start_datecharacter
pre_season_end_datecharacter
season_start_datecharacter
spring_start_datecharacter
spring_end_datecharacter
regular_season_start_datecharacter
last_date1st_halfcharacter
all_star_datecharacter
first_date2nd_halfcharacter
regular_season_end_datecharacter
post_season_start_datecharacter
post_season_end_datecharacter
season_end_datecharacter
offseason_start_datecharacter
off_season_end_datecharacter
season_level_gameday_typecharacter
game_level_gameday_typecharacter
qualifier_plate_appearancesnumeric
qualifier_outs_pitchedinteger

Arguments

sport_id

The sport_id to return season information for.

with_game_type_dates

with_game_type_dates to return season information

Examples

Run this code
# \donttest{
 mlb_seasons(sport_id = 1)
# }

Run the code above in your browser using DataLab