Miscellaneous R scripts for analyzing baseball data