Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Gtsummary digits by factor levels

$
0
0

How would I go about specifying the number of digits for different levels of a factor in a gt summary table?

For example, in the table output from the code below I would like 0 digits for Quebec and 1 digit for Mississippi.

library(tidyverse)library(gtsummary)CO2%>%  tbl_continuous(    variable=uptake,    by=Treatment,    include = Type,    statistic =~ "{mean} ({sd})")

Viewing all articles
Browse latest Browse all 12111

Trending Articles