
(legacy) Acquire pitch-by-pitch data for Major and Minor League games
Source:R/mlb_pbp.R, R/mlb_pbp_diff.R
get_pbp_mlb.Rd(legacy) Acquire pitch-by-pitch data for Major and Minor League games
(legacy) Acquire pitch-by-pitch data for Major and Minor League games
Arguments
- game_pk
The date for which you want to find game_pk values for MLB games
- add_base_state
If
TRUE, append per-event pre-pitch base-occupancy columnspre_on_1b/pre_on_2b/pre_on_3b(runner MLBAM ids,NAwhen the base is empty), reconstructed from the feed's runner-movement records. The API itself only publishes end-of-plate-appearance base state (matchup.postOn*); this derives the state before each pitch. Defaults toFALSE.