Learn R Programming

mlbstats (version 0.1.0)

baa: Calculates batting average against

Description

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

Usage

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

Run this code
# NOT RUN {
baa(105, 250, 50, 15, 10, 5, 1)
# }

Run the code above in your browser using DataLab