powered by
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)
Number of hits
Number of bases on balls
Number of hits by pitch
Number of at bats
Number of sacrifice flies
obp
# NOT RUN { obp(150, 40, 2, 400, 5) # }
Run the code above in your browser using DataLab