Closed SimonStolz closed 4 years ago
Hi,
print.TableOne()
has no digits
argument. Please use contDigits
for continuos variables. Proportions (i.e. percentages) are controlled with catDigits
. This behaviour was seperated to provide more flexibility.
https://www.rdocumentation.org/packages/tableone/versions/0.11.2/topics/print.TableOne
Greetings Alex
Apologies - I must have mistakenly looked at the regular print()
documentation! Thanks a lot Alex, this worked perfectly!
when now displaying the table, it makes no difference what
digits
I specify in the argument.pDigits
works fine, butdigits
has no impact on the output. It always rounded to 2 decimal places!print(CreateTableOne(vars = "x", strata="G", data = d), digits = 5, pDigits = 5)
print(CreateTableOne(vars = "x", strata="G", data = d), digits = 1, pDigits = 5)