Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

OBP

On base percentage for 2002 major league baseball season


Description

The on base percentage, OBP, is a measure of how often a players gets on base. It differs from the more familiar batting average, as it include bases on balls (BB) and hit by pitches (HBP). The exact formula is OBP = (H + BB + HBP) / (AB + BB + HBP + SF).

Usage

data(OBP)

Format

438 numbers between 0 and 1 corresponding the on base “percentage” for the 438 players who had 100 or more at bats in the 2002 baseball season. The "outlier" is Barry Bonds.

Source

This data came from the interesting Lahman baseball data base http://www.baseball1.com/. The names attribute uses the playerID from this database. Unfortunately there were some errors in the extraction from the original data set. Consult the original for accurate numbers.

Examples

data(OBP)
hist(OBP)
OBP[OBP>.5]			# who is better than 50%? (only Barry Bonds)

UsingR

Data Sets, Etc. for the Text "Using R for Introductory Statistics", Second Edition

v2.0-6
GPL (>= 2)
Authors
John Verzani <verzani@math.csi.cuny.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.