BillPetti / baseballr

A package written for R focused on baseball analysis. Currently in development.
billpetti.github.io/baseballr
Other
367 stars 100 forks source link

Base occupation information at the end of pitch #276

Open Clem68 opened 1 year ago

Clem68 commented 1 year ago

The output from mlb_pbp() contains a column indicating who was on a base at the end of each plate appearance. Would it be possible to get this information for the end of each pitch?

This would allow to see directly if a base has been stolen during a certain pitch. Also in terms of coherence, it would mimic the construction of count.XXX.start, which gives the count of XXXX at the end of each pitch and count.XXX.end which gives the count at the end of the plate appearance (where the XXX are ball, out and strikes).

Thanks!