title: R's table function in Julia (for DataFrames)
body: <p>Is there something like R's table function in Julia? I've read about <code>xtab</code>, but do not know how to use it.</p>
  
  <p>Suppose we have R's <code>data.frame</code> <code>rdata</code> which <code>col6</code> is of the <code>Factor</code> type.</p>
  
  <p>R sample code:</p>
  
  <p><code>rdata &lt;- read.csv("mycsv.csv") #1
  table(rdata$col6) #2</code>              </p>
  
  <p>In order to read data and make factors in Julia I do it like this:</p>
  
  <p><code>using DataFrames
  jldata = readtable("mycsv.csv", makefactors=true) #1 :col6 will be now pooled.
  </code></p>
  
  <p>..., but how to build R's table like in julia (how to achieve #2)?</p>