Hello group,

I have a data frame called test.df  with a bunch of columns. 

When I do a print(test.df), I want the numbers to appear a pre-defined
setting.

I believe this can be achieved by sprintf but this needs to be done
individually for the data.

However, is there an option that I can set so that all numerical values
default to comma separated, 2 decimal places when they appear?

Thanks,
S

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to