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

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -