powered by
Retrieve batting orders for a given MLB game via the MLB api http://statsapi.mlb.com/api/
get_batting_orders(game_pk, type = "starting")
The unique game_pk identifier for the game
Whether to just return the starting lineup ('starting') or all batters that appeared ('all')
Returns a data frame that includes probable starting pitchers and the home plate umpire for the game_pk provided requested
# NOT RUN { get_batting_orders(566001) # }
Run the code above in your browser using DataLab