statsapi_batting_orders: Retrieve batting orders for a given MLB game via the MLB api...

View source: R/statsapi_batting_orders.R

statsapi_batting_ordersR Documentation

Retrieve batting orders for a given MLB game via the MLB api http://statsapi.mlb.com/api/

Description

Retrieve batting orders for a given MLB game via the MLB api http://statsapi.mlb.com/api/

Usage

statsapi_batting_orders(game_pk)

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 data frame that includes probable starting pitchers and the home plate umpire for the game_pk provided requested

Examples

## Not run: statsapi_batting_orders(566001)

pontsuyu/mlbR documentation built on March 23, 2023, 6:38 a.m.