EqA: Calculates equivalent average

Description Usage Arguments Value Examples

View source: R/batting.R

Description

Takes the number of hits, total bases, bases on balls, hits by pitch, stolen bases, sacrifice hits, sacrifice flies, at bats, and caught stealing to compute the base runs, which is a player's batting average absent park and league effects

Usage

1
EqA(h, tb, bb, hbp, sb, sh, sf, ab, cs)

Arguments

h

Number of hits

tb

Number of total bases (one for 1B, two for 2B, three for 3B, and four for HR)

bb

Number of bases on balls

hbp

Number of hits by pitch

sb

Number of stolen bases

sh

Number of sacrifice hits (typically bunts)

sf

Number of sacrifice flies

ab

Number of at bats

cs

Number of caught stealing

Value

EqA

Examples

1
EqA(135, 155, 22, 3, 15, 4, 2, 365, 1)

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

Related to EqA in mlbstats...