t$value <- format(round(as.numeric(t$value),1), nsmall=1,big.mark = ",")
stflg value
1 zm 1,000.2
2 r1 2,231,213,232.4
xtable(t)
% latex table generated in R 3.1.3 by xtable 1.8-2 package
% Mon Aug 22 19:15:19 2016
\begin{table}[ht]
\centering
\begin{tabular}{rll}
\hline
& stflg & value \\
\hline
1 & zm & 1,000.2 \\
2 & r1 & 2,231,213,232.4 \\
\hline
\end{tabular}
\end{table}
Comments
Post a Comment