Learn R Programming

baseballDBR (version 0.1.2)

WHIP: Pitching: Calculate Walks plus Hits per Innings Pitched

Description

Find the number of walks plus hits a pitcher allows per inning pitched. Required fields from the Pitching table are; "H", "BB", and "IPouts."

Usage

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

Examples

Run this code

data("Pitching2016")
head(Pitching2016)

Pitching2016$WHIP <- WHIP(Pitching2016)

Run the code above in your browser using DataLab