title: How can i compute the code as percentage?
body: <pre><code>scoresQA&lt;-t(apply(FormA[-1,-1],1,function (x) as.numeric((FormA[1,-1]==x))))
  scoresPerQA&lt;-apply(scoresQA,2,sum)
  
  scoresQB&lt;-t(apply(FormB[-1,-1],1,function (x) as.numeric((FormB[1,-1]==x))))
  scoresPerQB&lt;-apply(scoresQB,2,sum)
  </code></pre>
  
  <p>This is the code that i made to determine the overall score for each question. How can i compute this as a percentage?(to nnn.n%format)</p>