gpa {mlbstats} | R Documentation |
Calculates gross production average
Description
Computes the gross production average, which is 1.8 times on-base percentage (OBP) plus slugging percentage (SLG), divided by four
Usage
gpa(h, bb, hbp, ab, sf, b1, b2, b3, hr)
Arguments
h |
Number of hits |
bb |
Number of bases on balls |
hbp |
Number of hits by pitch |
ab |
Number of at bats |
sf |
Number of sacrifice flies |
b1 |
Number of singles |
b2 |
Number of doubles |
b3 |
Number of triples |
hr |
Number of home runs |
Value
gpa
Examples
gpa(150, 40, 2, 400, 5, 100, 40, 3, 7)
[Package mlbstats version 0.1.0 Index]