title: R - how to reference values in a table() nested in a list?
body: <p>I'm generating a series of tables with the command <code>table()</code> that I'm storing together in a list, and I want to reference specific values of each table to use in calculation. I can correctly pull out the correct table from my list but I can't seem to find the correct way to reference the values within the table.</p>
  
  <p>Here is my table (I don't think it matters, but I'm referencing this table within my list with code <code>tables$'10'[1]</code>):</p>
  
  <pre><code>[[1]]
            label.test
  test_pred  Disorder Normal
    Disorder        7      4
    Normal          8     16
  </code></pre>
  
  <p>I'd like to be able to pull out one of those numbers, for example the 4 which seems like it would be referred to with [1,2]. I've tried nesting more brackets inside like this <code>[1[1,2]]</code>, or chaining the square brackets one after another like this <code>[1][1,2]</code>, or using more of the <code>$</code> notation, but none of these have worked so far.</p>
  
  <p>How can I reference the values in the table?</p>