Learn R Programming

baseballDBR (version 0.1.2)

BB_9: Pitching: Calculate walks per nine innings

Description

Find batting average walks per nine innings for pitchers with more one or more inning pitched. Required fields from the Pitching table are; "IPouts", and "BB."

Usage

BB_9(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 Pitching functions: FIP, HR_9, H_9, IP, K_9, LOB_pct, WHIP

Examples

Run this code

data("Pitching2016")
head(Pitching2016)

Pitching2016$BB_9 <- BB_9(Pitching2016)

Run the code above in your browser using DataLab