BABIP: Batting: Calculate batting average on balls in play (BABIP)
Description
Find BABIP for batters with more than zero at bats.
Required fields from the Batting table are; "AB", "BB", "H", "HBP", "SF", "SH", "HR" and "SO."
Usage
BABIP(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.