title: Create a Table from a Data frame with some conditions
body: <p>From the following data frame, I am trying to output two tables, one for <code>PASS</code> and another one for <code>FAIL</code>. The condition is that the output for each table should contain only the <code>ID</code> and the <code>Score</code>. Can anyone help me with this? I am still starting to know the full capabilities of the table function. If anyone could suggest other alternatives I would greatly appreciate it as long as the conditions for the output is met. </p>
  
  <pre><code>&gt; df &lt;- data.frame(
            ID &lt;-  as.factor(c(20260, 11893, 54216, 11716, 53368, 46196, 40007, 20970, 11802, 46166, 23615, 11865, 16138, 64789, 43211, 66539));
            Score &lt;- c(9,7,6,2,10,7,8,10,6,7,7,9,9,9,10,8)
            Remark&lt;- as.factor(c("PASS","PASS","FAIL","FAIL","PASS","PASS","PASS","PASS","FAIL","PASS","PASS","PASS","PASS","PASS","PASS","PASS"))
  )
  &gt; df
        ID Score Remark
  1  20260     9   PASS
  2  11893     7   PASS
  3  54216     6   FAIL
  4  11716     2   FAIL
  5  53368    10   PASS
  6  46196     7   PASS
  7  40007     8   PASS
  8  20970    10   PASS
  9  11802     6   FAIL
  10 46166     7   PASS
  11 23615     7   PASS
  12 11865     9   PASS
  13 16138     9   PASS
  14 64789     9   PASS
  15 43211    10   PASS
  16 66539     8   PASS
  </code></pre>