R Scripts for Analysis of NBA data