Learn R Programming

baseballDBR (version 0.1.2)

ISO: Batting: Calculate ISO for batters

Description

Find isolated power (ISO) for batters with more than zero at bats. Required fields from the batting table are "H", "X2B", "X3B", "HR"."

Usage

ISO(dat = NULL)

Arguments

dat

A data frame you would wish to calculate. The data frame must have the same column names found in The Lahman package or the Chadwick Bureau GitHub repository.

See Also

Other Batting functions: BABIP, BA, BBpct, CTpct, HRpct, Kpct, OBP, OPS, PA, RC2002, RCbasic, RCtech, SLG, TBs, XBHpct, XBperH, wOBA, wRAA, wRC

Examples

Run this code

data("Batting2016")
head(Batting2016)

Batting2016$ISO <- ISO(Batting2016)

Run the code above in your browser using DataLab