You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for a way to express counts and percentage with k significant numbers, i.e. overcoming the current default of setting the number of decimal for the percents. In my exemple, I would like 91% and 9.1%, but with combination of parameters digits and digits.pct, I can only have one of the two. Thanks x <- c(rep("A", 10), "B") table1( ~ x, digits.pct = 1)
The text was updated successfully, but these errors were encountered:
slevu
changed the title
specifying significant numbers for percent
Specifying significant numbers for percent
Mar 7, 2023
Great. Thanks Benjamin.
I get that the point is to avoid using stats.apply.rounding() in the definition of render.categorical. I adapted your solution for my needs with signif_pad().
I am looking for a way to express counts and percentage with k significant numbers, i.e. overcoming the current default of setting the number of decimal for the percents. In my exemple, I would like 91% and 9.1%, but with combination of parameters
digits
anddigits.pct
, I can only have one of the two. Thanksx <- c(rep("A", 10), "B")
table1( ~ x, digits.pct = 1)
The text was updated successfully, but these errors were encountered: