title: Want to put digits(decimals) to ONLY the separate percentage column values in tbl_summary. Any break down tutorial on how map works?
body: <p>I would want to add decimals for the percentage column only</p>
  <p>#Separate columns
  library(gtsummary)
  library(tidyverse)</p>
  <pre><code>tbl &lt;- 
    c(&quot;{n}&quot;, &quot;{p}%&quot;) %&gt;%         # iterate over these two statistics
    # build tbl_summary using each of the stats
    map(
      ~trial %&gt;% 
        select(response, grade) %&gt;% 
        tbl_summary(
          statistic = all_categorical() ~ .x,
          missing = &quot;ifany&quot;,
      digits = list(
        all_categorical() ~ 1,
        all_continuous() ~ 0
      ),
      missing_text = &quot;(Missing)&quot;
        ) 
    ) %&gt;%
    # merge the two tables together
     tbl_merge() %&gt;%
    # some formatting to make it cute
    modify_spanning_header(everything() ~ NA) %&gt;%
    modify_footnote(everything() ~ NA) %&gt;%
    modify_header(list(stat_0_1 ~ &quot;**n / N**&quot;, stat_0_2 ~ &quot;**percent**&quot;))
  </code></pre>