Takes the number of hits, total bases, bases on balls, hits by pitch, stolen bases, sacrifice hits, sacrifice flies, at bats, and caught stealing to compute the base runs, which is a player's batting average absent park and league effects
Usage
EqA(h, tb, bb, hbp, sb, sh, sf, ab, cs)
Arguments
h
Number of hits
tb
Number of total bases (one for 1B, two for 2B, three for 3B, and four for HR)