Learn R Programming

mlbstats (version 0.1.0)

iso: Calculates isolated power

Description

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.

Usage

iso(b1, b2, b3, hr, ab, h)

Arguments

b1

Number of singles

b2

Number of doubles

b3

Number of triples

hr

Number of home runs

ab

Number of at bats

h

Number of hits

Value

iso

Examples

Run this code
# NOT RUN {
iso(100, 40, 3, 7, 350, 150)
# }

Run the code above in your browser using DataLab