r - add commas into number for output -
I am outputting a data frame to html via xtable
. I want to add numbers to a comma in some columns of the table. I think before I hack my own paste, I knew that it was made in a way to do this.
you formatC
& Gt; You may want to consider changing the column using Formats C (1:10 * 100000, format = "D", large.mark = ",") [1] "100,000" "200,000" "300,000" "400,000" "500,000" "600,000" [7] "700,000" "800,000" "900,000" "1,000,000"
Comments
Post a Comment