obp {mlbstats} | R Documentation |
Computes the on-base percentage based on number of hits, bases on balls, hits by pitch, at bats, and sacrifice flies
obp(h, bb, hbp, ab, sf)
h |
Number of hits |
bb |
Number of bases on balls |
hbp |
Number of hits by pitch |
ab |
Number of at bats |
sf |
Number of sacrifice flies |
obp
obp(150, 40, 2, 400, 5)