title: Estimate range of every row in R
body: <p>We did a survey where 60 students had to vote their favorite ideas. you could select three ideas. The best idea gets 3 points, the next 2 and the third best idea 1 point. columns 2 to 10 correspond to the ideas.</p>
  
  <p>So to check if everyone did the survey correctly I used the command</p>
  
  <pre><code>rowSums(x[,2:10], na.rm=T)
  </code></pre>
  
  <p>This works.</p>
  
  <p>But next to that I would like to check the range for every row with the following command:</p>
  
  <pre><code>rowRanges(x, rows = NULL, cols=NULL, na.rm=T, dim.=dim(x[,2:10])
  </code></pre>
  
  <p>But here is a mistake. Can you help me?</p>