Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

BBpct

Batting: Calculate base on ball percentage


Description

Find base on ball percentage for batters with more than zero at bats. Required fields from the Batting table are; "AB", "SO", "BB", "HBP", "SF", and "SH." Intentional base on balls (IBB) is added for the years that metric is available.

Usage

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

Examples

data("Batting2016")
head(Batting2016)

Batting2016$BBpct <- BBpct(Batting2016)

baseballDBR

Sabermetrics and Advanced Baseball Statistics

v0.1.2
MIT + file LICENSE
Authors
Kris Eberwein [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.