Closed samuelsaari closed 1 year ago
I agree that better documentation would be helpful (I'll see what I can do). A simpler way to accomplish what you want (consistent 2 decimal places everywhere) without needing any render functions is:
table1(~ age + sex + wt | treat, data=dat,
render.continuous = c(.="Mean (SD)"),
rounding.fn = round_pad,
round.median.min.max = FALSE,
digits.pct = 2,
digits = 2)
(edit: updated with simpler code)
Ok thanks, this is nice and straightforward.
Related to issue #37, how can one customize the decimal places for the missing values? The default seems to be one, but would need 2 decimal places.
Also a a general documentation on how to customize the continous/categorical/missing renderings would be very helpful. Can make most things work but it is currently copy pasting things from here and there.