erc {mlbstats} | R Documentation |
Calculates component earned run average
Description
Computes earned run average from hits and walks (compare with "era" which is the traditional formula for earned run average, "aera" which is a pitcher's adjusted earned run average, or "dice" which is the defense-independent component earned run average)
Usage
erc(h, bb, hbp, hr, ibb, bfp, ip)
Arguments
h |
Number of hits allowed |
bb |
Number of bases on balls |
hbp |
Number of hit batters |
hr |
Number of home runs |
ibb |
Number of intentional bases on balls |
bfp |
Number of batters faced by pitcher |
ip |
Number of innings pitched |
Value
erc
Examples
erc(110, 45, 10, 70, 5, 400, 215)
[Package mlbstats version 0.1.0 Index]