R/mlb.R

#' @name mlb
#' @title
#' **MLB Functions Overview**
#' @description
#' \describe{
#'   \item{```mlb_batting_orders()```:}{ Retrieve batting orders for a given MLB game.}
#'   \item{```mlb_draft()```:}{ Retrieve draft pick information by year.}
#'   \item{```mlb_pbp()```:}{ Acquire pitch-by-pitch data for Major and Minor League games.}
#'   \item{```mlb_game_info()```:}{ Retrieve additional game information for major and minor league games.}
#'   \item{```mlb_game_pks()```:}{ Get MLB Game Info by Date and Level.}
#'   \item{```mlb_schedule()```:}{ Find game_pk values for professional baseball games (major and minor leagues).}
#'   \item{```mlb_probables()```:}{ Retrieve probable starters for a given MLB game.}
#' }
#' @details
#' ### **Retrieve batting orders for a given MLB game**
#' ```r
#'   mlb_batting_orders(game_pk=566001)
#' ```
#' ### **Retrieve draft pick information by year**
#' ```r
#'   mlb_draft(year= 2018)
#' ```
#' ### **Acquire pitch-by-pitch data for Major and Minor League games**
#' ```r
#'   mlb_pbp(game_pk = 575156)
#' ```
#' ### **Retrieve additional game information for major and minor league games**
#' ```r
#'   mlb_game_info(game_pk = 566001)
#' ```
#' ### **Get MLB Game Info by Date and Level**
#' ```r
#'   mlb_game_pks("2019-04-29")
#' ```
#' ### **Find game_pk values for professional baseball games (major and minor leagues)**
#' ```r
#'   mlb_schedule(season = "2019")
#' ```
#' ### **Retrieve probable starters for a given MLB game**
#' ```r
#'   mlb_probables(566001)
#' ```
NULL

Try the baseballr package in your browser

Any scripts or data that you put into this service are public.

baseballr documentation built on April 1, 2023, 12:12 a.m.