baa {mlbstats} | R Documentation |
Calculates batting average against
Description
Computes pitcher's ability to prevent hits, based on h, bfp, bb, hbp, sf, sh, and ci (catcher's interference)
Usage
baa(h, bfp, bb, hbp, sh, sf, ci)
Arguments
h |
Number of hits allowed |
bfp |
Number of batters facing pitcher |
bb |
Number of bases on balls |
hbp |
Number of hit batters |
sh |
Number of sacrifice hits |
sf |
Number of sacrifice flies |
ci |
Number of catcher's interference |
Value
baa
Examples
baa(105, 250, 50, 15, 10, 5, 1)
[Package mlbstats version 0.1.0 Index]