dice: Calculates defense-independent component earned run average

Description Usage Arguments Value Examples

View source: R/pitching.R

Description

Computes earned run average from hits and walks (compare with "era" which is the traditional formula for earned run average, "aera" which is a pitcher's adjusted earned run average, or "erc" which is the component earned run average)

Usage

1
dice(bb, hbp, hr, k, ip)

Arguments

bb

Number of bases on balls

hbp

Number of hit batters

hr

Number of home runs

k

Number of strikeouts

ip

Number of innings pitched

Value

dice

Examples

1
dice(45, 10, 60, 130, 400)

mlbstats documentation built on May 2, 2019, 1:04 p.m.

Related to dice in mlbstats...