powered by
Generates the frequency a batter reaches a base after putting the ball in play (normal around .300)
babip(h, hr, ab, k, sf)
Number of hits
Number of home runs
Number of at bats
Number of strikeouts
Number of sacrifice flies
babip
# NOT RUN { babip(200, 25, 525, 55, 6) # }
Run the code above in your browser using DataLab