analyze MLB data with R