Learn R Programming

baseballr (version 1.5.0)

mlb_batting_orders: Retrieve batting orders for a given MLB game

Description

Retrieve batting orders for a given MLB game

Usage

mlb_batting_orders(game_pk, type = "starting")

Value

Returns a tibble that includes probable starting pitchers and the home plate umpire for the game_pk requested

col_nametypes
idinteger
fullNamecharacter
abbreviationcharacter
batting_ordercharacter
batting_position_numcharacter
teamcharacter
teamNamecharacter
teamIDinteger

Arguments

game_pk

The unique game_pk identifier for the game

type

Whether to just return the starting lineup ('starting') or all batters that appeared ('all')

Examples

Run this code
# \donttest{
  try(mlb_batting_orders(game_pk=566001))
# }

Run the code above in your browser using DataLab