i have the following dummy data.frame for which I'd like to create a summary using tableby
require(arsenal)
set.seed(12345)
df<-data.frame(var1=floor(runif(10,1000000,5000000)), var2=floor(runif(10,2500000,1000000000)), group=rep(c("A","B"),5))
desTab<-tableby(group~., data = df)
summary(desTab, digits = 0)
The output does not include any separators for the thousands ( "," ). This makes it rather unreadable.
How can I change it?
I played with
tableby.control()
But with no success.
Thanks for your help!