Learn R Programming

mlbstats (version 0.1.0)

wr: Calculates whiff rate

Description

Computes pitcher's ability to get a batter to swing and miss pitches over any period of time (e.g., in a single game, single season, career, etc.)

Usage

wr(sw, tp)

Arguments

sw

Number of swings and misses

tp

Total pitches thrown

Value

wr

Examples

Run this code
# NOT RUN {
wr(300, 750)
# }

Run the code above in your browser using DataLab