Learn R Programming

baseballr (version 1.6.0)

mlb_seasons_all: Find MLB Seasons all

Description

Find MLB Seasons all

Usage

mlb_seasons_all(
  sport_id = 1,
  division_id = NULL,
  league_id = NULL,
  with_game_type_dates = TRUE
)

Value

Returns a tibble with the following columns:

col_nametypes
season_idcharacter
has_wildcardlogical
pre_season_start_datecharacter
season_start_datecharacter
regular_season_start_datecharacter
regular_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
post_season_start_datecharacter
post_season_end_datecharacter
last_date1st_halfcharacter
all_star_datecharacter
first_date2nd_halfcharacter
pre_season_end_datecharacter
spring_start_datecharacter
spring_end_datecharacter

Arguments

sport_id

The sport_id to return season information for.

division_id

The division_id to return season information for.

league_id

The league_id to return season information for.

with_game_type_dates

with_game_type_dates to return season information for.

Examples

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

Run the code above in your browser using DataLab