Baseball Analytics done in R