| mlb_batting_orders | R Documentation |
Retrieve batting orders for a given MLB game
mlb_batting_orders(game_pk, type = "starting")
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') |
Returns a tibble that includes probable starting pitchers and
the home plate umpire for the game_pk requested
| col_name | types | description |
| id | integer | MLB player ID. |
| fullName | character | Player full name. |
| abbreviation | character | Fielding position abbreviation. |
| batting_order | character | Spot in the batting order (1-9). |
| batting_position_num | character | Sub-position within the lineup spot (0 = starter). |
| team | character | Side of the matchup ('home' or 'away'). |
| teamName | character | Team name. |
| teamID | integer | MLB team ID. |
try(mlb_batting_orders(game_pk=566001))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.