powered by
Computes the gross production average, which is 1.8 times on-base percentage (OBP) plus slugging percentage (SLG), divided by four
gpa(h, bb, hbp, ab, sf, b1, b2, b3, hr)
Number of hits
Number of bases on balls
Number of hits by pitch
Number of at bats
Number of sacrifice flies
Number of singles
Number of doubles
Number of triples
Number of home runs
gpa
# NOT RUN { gpa(150, 40, 2, 400, 5, 100, 40, 3, 7) # }
Run the code above in your browser using DataLab