The argument formatOptions = list(big.mark = ",") is not working for printing absolute frequencies of categorical variables with commas as thousands separators.
Consider the minimal example:
library(tableone)
library(survival)
tab <- CreateTableOne(vars= c("edrel","stage"),
factorVars = "stage",
data = nwtco)
print(tab, formatOptions = list(big.mark = ","))
Which gives:
Overall
n 4,028
edrel (mean (SD)) 2,276.68 (1,640.18)
stage (%)
1 1572 (39.0)
2 1052 (26.1)
3 944 (23.4)
4 460 (11.4)
Any advice or suggestions would be greatly appreciated.
The argument
formatOptions = list(big.mark = ",")is not working for printing absolute frequencies of categorical variables with commas as thousands separators.Consider the minimal example:
Which gives:
Any advice or suggestions would be greatly appreciated.