Learn R Programming

UsingR (version 2.0-7)

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)

Arguments

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.

Examples

Run this code
# NOT RUN {
data(OBP)
hist(OBP)
OBP[OBP>.5]			# who is better than 50%? (only Barry Bonds)
# }

Run the code above in your browser using DataLab