Description Usage Arguments Details Value Note Examples
Find the Run Expectancy for a given state.
1 |
data |
an MLBAM dataset |
drop.incomplete |
a LOGICAL indicating whether incomplete innings (e.g. walk-off innings) should be excluded from the run expectancy model. Default is TRUE. |
... |
currently ignored |
Given a data set, returns a function giving the run expectancy for any base/out state
A function that takes two arguments: baseCode and outs, and returns a run value
baseCode takes on integer values between 0 and 7 with each value correpsonding to a unique base state (e.g. runner on second, runners on first and third, bases loaded). The baseCode is the binary representation of the base state with first, second, and third base represented by 1, 2, and 4, respectively. For example, runners on second and third corresponds to a baseCode of 6 (i.e. 2 + 4 = 6).
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.