Rscript for summary stats for grades in grades.csv type file