babip: Calculates batting average on balls in play

Description Usage Arguments Value Examples

View source: R/batting.R

Description

Generates the frequency a batter reaches a base after putting the ball in play (normal around .300)

Usage

1
babip(h, hr, ab, k, sf)

Arguments

h

Number of hits

hr

Number of home runs

ab

Number of at bats

k

Number of strikeouts

sf

Number of sacrifice flies

Value

babip

Examples

1
babip(200, 25, 525, 55, 6)

Example output

[1] 0.3880266

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

Related to babip in mlbstats...