powered by
Computes isolated power, which is a player's ability to obtain extra bases from a hit. The statistic subtracts a hitter's batting average from the slugging percentage, with the maximum ISO being 3.000.
iso(b1, b2, b3, hr, ab, h)
Number of singles
Number of doubles
Number of triples
Number of home runs
Number of at bats
Number of hits
iso
# NOT RUN { iso(100, 40, 3, 7, 350, 150) # }
Run the code above in your browser using DataLab