title: R gtsummary package: How to Manipulate / Hide Rows in Summary Table
body: <p>I am working on a project with gtsummary. For one of the tables, I have to build a long table listing covariables before and after the matchit process.</p>
  <p>My issue is that for all of the covariables (<em>Obesity</em>, for example), it reads one row, <em>Obesity</em>, then next row, <em>Obese</em>, and then the next, <em>Not Obese</em>. That is three tables for which I wish to only show one: <em>Diabetes N (%)</em>.</p>
  <p>I have tried editing dichotomous variables, introducing <code>Null</code>, trying to find a <code>row_hide</code> function, but to no avail.</p>
  <p>Here is my code:</p>
  <h3>Creation of trial</h3>
  <pre class="lang-r prettyprint-override"><code>trialCAS1 &lt;- index_CAS %&gt;%
  select(TopDecile, Gender, Obesity, Diabetes, Diabetes_Complex, etc)
  </code></pre>
  <h3>Tbl summary</h3>
  <pre class="lang-r prettyprint-override"><code>CAStable1 &lt;- tbl_summary(trialCAS1, 
  by = TopDecile,
  missing = &quot;no&quot;) %&gt;%
  add_n() %&gt;%
  modify_header(label = &quot;**Variable**&quot;) %&gt;%
  bold_labels()
  </code></pre>
  <p>I included the first table I get.</p>
  <p><img src="https://i.stack.imgur.com/mETSo.png" alt="image" /></p>