Possible Duplicate:
Controlling digits in R
Is there way to show up to the 3rd decimal place of every number in a matrix in R for numbers like 0.12 or 0? I want to force R to show 0.120 and 0.000 instead of 0.12 or 0.
I want to do this because my ultimate goal is to export an R matrix to latex as a table.