OBP                  package:UsingR                  R Documentation

_O_n _b_a_s_e _p_e_r_c_e_n_t_a_g_e _f_o_r _2_0_0_2 _m_a_j_o_r _l_e_a_g_u_e _b_a_s_e_b_a_l_l _s_e_a_s_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     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)'.

_U_s_a_g_e:

     data(OBP)

_F_o_r_m_a_t:

     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.

_S_o_u_r_c_e:

     This data came from the  interesting Lahman baseball data base
     <URL: 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.

_E_x_a_m_p_l_e_s:

     data(OBP)
     hist(OBP)
     OBP[OBP>.5]                     # who is better than 50

