title: gtsummary: controlling the number decimal places for each variable
body: <p>I would like to perform granular control of the number of decimal places for all statistics of each variable. In the reproducible example below, let's say I want to have the mean and median of &quot;age&quot; displayed with one decimal place and the mean and median of &quot;marker&quot; with 3 decimal places. I have been unable to achieve that. Any help would be much appreciated.</p>
  <pre><code>library(gtsummary)
  trial %&gt;% select(trt, age, marker) %&gt;% 
    tbl_summary(by = trt,
              missing = &quot;no&quot;,
              type = all_continuous() ~ &quot;continuous2&quot;,
              statistic = all_continuous() ~ c(
                &quot;{mean}&quot;,
                &quot;{median}&quot;),
              digits = list(all_continuous() ~ c(1, 3)))
  </code></pre>