mlb_batting_orders {baseballr} | R Documentation |
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")
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') |
Value
Returns a tibble that includes probable starting pitchers and
the home plate umpire for the game_pk
requested
col_name | types |
id | integer |
fullName | character |
abbreviation | character |
batting_order | character |
batting_position_num | character |
team | character |
teamName | character |
teamID | integer |
Examples
try(mlb_batting_orders(game_pk=566001))
[Package baseballr version 1.6.0 Index]