First of all, I trimed dataset. Load the packages that I will need, read the csv file in to R, convert the data frame to a table frame through the dplyr function, tbl_df
## Source: local data frame [52 x 6] ## ## sx rk yr dg yd sl ## (int) (int) (int) (int) (int) (int) ## 1 0 3 25 1 35 36350 ## 2 0 3 13 1 22 35350 ## 3 0 3 10 1 23 28200 ## 4 1 3 7 1 27 26775 ## 5 0 3 19 0 30 33696 ## 6 0 3 16 1 21 28516 ## 7 1 3 0 0 32 24900 ## 8 0 3 16 1 18 31909 ## 9 0 3 13 0 30 31850 ## 10 0 3 13 0 31 32850 ## .. ... ... ... ... ... ...