title: Categorical variable of more than five categories not showing on sumtable in R
body: <p>I am trying to conduct a balance test for treatment and control groups.
  Using <code>sumtable</code> from vtable package, I constructed a summary statistics table by group.
  However, a categorical variable of more than 5 categories does not show on the table.</p>
  <p>So for example I have a sample dataframe like this:</p>
  <pre><code>Treatment &lt;- c(&quot;Treated&quot;, &quot;Control&quot;, &quot;Control&quot;, &quot;Treated&quot;, &quot;Treated&quot;, &quot;Treated&quot;, &quot;Control&quot;, &quot;Treated&quot;, &quot;Control&quot;, &quot;Control&quot;)
  City &lt;- c(1, 4, 6, 2, 3, 3, 2, 5, 4, 6)
  Age &lt;- c(56, 70, 12, 54, 23, 9, 33, 38, 27, 49)
  Gender &lt;- c(1, 2, 3, 2, 2, 1, 1, 3, 2, 1)
  df &lt;- data.frame(Treatment, City, Age, Gender)
  </code></pre>
  <p>I label City and Gender accordingly:</p>
  <pre><code>label_city &lt;- c(&quot;1&quot; = &quot;City A&quot;,
                  &quot;2&quot; = &quot;City B&quot;,
                  &quot;3&quot; = &quot;City C&quot;,
                  &quot;4&quot; = &quot;City D&quot;,
                  &quot;5&quot; = &quot;City E&quot;,
                  &quot;6&quot; = &quot;City F&quot;)
  df$City &lt;- label_city[match(df$City, names(label_city))]
  
  label_gender &lt;- c(&quot;1&quot; = &quot;Male&quot;,
                    &quot;2&quot; = &quot;Female&quot;,
                    &quot;3&quot; = &quot;Other&quot;)
  df$Gender &lt;- label_gender[match(df$Gender, names(label_gender))]
  </code></pre>
  <p>Then I create the table:</p>
  <pre><code>sumtable(df, group = &quot;Treatment&quot;, group.test = TRUE)
  </code></pre>
  <p>I get a summary statistics table with Age and Gender, but without City.
  When I restrict City to up to five categories, it appears on the table.
  Is there a way to make City present in the summary table with all the categories?</p>