title: How to convert factor column to original values
body: <p>I have an integer column that has factor applied to it:</p>
  
  <pre><code>col &lt;- factor(list("3", "4", "3", "3"), labels = c("a", "b"), levels = c(3, 4))
  </code></pre>
  
  <p>If I convert that column to integer, I get:</p>
  
  <pre><code>&gt; as.integer(col)
  [1] 1 2 1 1
  </code></pre>
  
  <p>While I want to get original list of 3 and 4.</p>
  
  <p>How can I achieve this?</p>