era: Calculates earned run average

Description Usage Arguments Value Examples

View source: R/pitching.R

Description

Computes a pitcher's earned run average (compare with "erc" which is the component earned run average, "aera" which is a pitcher's adjusted earned run average, or "dice" which is the defense-independent component earned run average)

Usage

1
era(er, ip)

Arguments

er

Number of runs that did not occur as a result of errors or passed balls

ip

Number of innings pitched

Value

era

Examples

1
era(150, 400)

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

Related to era in mlbstats...