Skip to content

formatOptions=list(big.mark=",") not working for printing absolute frequencies of categorical variables with commas as thousands separators #99

Description

@R-Joe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions