title: How to get true positive, false negative table from output of predict()?
body: <p>I would like to print simple table which will show how much rows in test set were predicted right and how much were wrong (true-negative, false-positive).</p>
  
  <pre><code>      |  class1   |   class2  |
  class1|0.577995490|0.686545476|
  class2|0.885664669|0.559988874|
  </code></pre>
  
  <p>(values in this table are not real)</p>
  
  <p>I am currently using klaR package and NaiveBayes function which i use in predict() function. It looks like this:</p>
  
  <pre><code>prediction &lt;- predict(naiveBayesSet, testSet)
  </code></pre>