I have a set of data that shows test scores (raw$Score) by year (raw$Year).
I would like to create a table where I see the years as rows and scores in columns and for the scores to be grouped in increments of 5.
When I runtable(raw$Year,raw$Score), I get the following. How would I modify table(raw$Year,raw$Score) so that the counts will be grouped by 75-80, 81-85, 86-90, 91,-95, and 96-100?
   75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
  2006  0  1  0  0  1  3  1  0  1  1  1  1  0  0  1  0  0  0  2  1  0  2  0  1  1   6
  2007  0  0  1  0  1  1  0  0  0  0  1  1  0  0  0  0  0  1  0  0  0  4  2  2  1   5
  2008  0  1  2  0  2  2  1  2  1  0  0  0  0  0  0  1  2  0  0  0  1  0  2  3  2   8
  2009  1  1  3  0  1  1  6  0  2  1  1  3  1  0  0  2  0  1  0  0  0  1  2  2  1  13
  2010  2  5  0  2  3  1  1  3  2  1  1  0  2  1  2  2  1  0  0  2  2  2  2  2  4  24
  2011  2  1  1  0  3  1  0  1  2  0  0  1  2  1  1  2  3  0  2  1  2  0  0  2  3  12
  2012  1  1  3  5  4  1  1  1  1  0  2  0  1  1  0  1  0  0  1  2  1  0  3  1  2  24
  2013  2  2  3  3  1  2  2  3  1  0  4  3  0  2  1  0  1  1  2  0  2  0  2  2  2  20
  2014  0  4  3  1  1  3  1  4  2  0  4  2  1  1  2  3  0  1  1  1  1  2  3  1  4  20
  2015  2  1  1  3  4  2  2  2  0  0  1  3  4  2  3  1  2  3  1  0  2  0  0  2  2  22
  2016  2  2  2  3  3  2  0  2  4  3  5  2  2  4  3  4  2  5  2  1  1  2  2  3  2  20
  2017  2  7  5  3  3  3  4  6  0  2  1  2  1  3  2  2  0  7  1  3  3  2  3  1  5  17
 
     
     
    