baa: Calculates batting average against

Description Usage Arguments Value Examples

View source: R/pitching.R

Description

Computes pitcher's ability to prevent hits, based on h, bfp, bb, hbp, sf, sh, and ci (catcher's interference)

Usage

1
baa(h, bfp, bb, hbp, sh, sf, ci)

Arguments

h

Number of hits allowed

bfp

Number of batters facing pitcher

bb

Number of bases on balls

hbp

Number of hit batters

sh

Number of sacrifice hits

sf

Number of sacrifice flies

ci

Number of catcher's interference

Value

baa

Examples

1
baa(105, 250, 50, 15, 10, 5, 1)

Example output

[1] 0.6213018

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

Related to baa in mlbstats...