Kpct {baseballDBR}R Documentation

Batting: Calculate strikeout percentage

Description

Find strikeout percentage for batters with more than zero at bats. Required fields from the Batting table are; "AB", "SO", "BB", "HBP", "SF", and "SH."

Usage

Kpct(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, ISO, OBP, OPS, PA, RC2002, RCbasic, RCtech, SLG, TBs, XBHpct, XBperH, wOBA, wRAA, wRC

Examples


data("Batting2016")
head(Batting2016)

Batting2016$Kpct <- Kpct(Batting2016)


[Package baseballDBR version 0.1.2 Index]