title: Output each factor level as dummy variable in stargazer summary statistics table
body: <p>I'm using the R package <a href="http://cran.r-project.org/package=stargazer" rel="nofollow noreferrer">stargazer</a> to create high-quality regression tables, and I would like to use it to create a summary statistics table.  I have a factor variable in my data, and I would like the summary table to show me the percent in each category of the factor -- in effect, separate the factor into a set of mutually exclusive logical (dummy) variables, and then display those in the table.  Here's an example:</p>
  
  <pre><code>&gt; library(car)
  &gt; library(stargazer)
  &gt; data(Blackmore)
  &gt; stargazer(Blackmore[, c("age", "exercise", "group")], type = "text")
  
  ==========================================
  Statistic  N   Mean  St. Dev.  Min   Max  
  ------------------------------------------
  age       945 11.442  2.766   8.000 17.920
  exercise  945 2.531   3.495   0.000 29.960
  ------------------------------------------
  </code></pre>
  
  <p>But I'm trying to get an additional row that shows me the percent in each group (% control and/or % patient, in these data).  I'm sure this is just an option somewhere in stargazer, but I can't find it.  Does anyone know what it is?</p>
  
  <p>Edit: <code>car::Blackmoor</code> has updated spelling to <code>car::Blackmore</code>.</p>