title: R - get mode of factor's underlying values?
body: <p>How do I get the mode of the underlying values in a factor?  For example, given test2 below, how would I get "character" instead of "numeric"?</p>
  
  <pre><code>test = c( "a" , "b" , "c" )
  mode( test ) # "character"
  test2 = factor( test )
  mode( test2 ) # "numeric"
  </code></pre>