Learn R Programming

mlbstats (version 0.1.0)

era: Calculates earned run average

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

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

Run this code
# NOT RUN {
era(150, 400)
# }

Run the code above in your browser using DataLab