title: How do I preserve internally-created trailing zeros when exporting a CSV from R?
body: <p>First, <a href="https://stackoverflow.com/questions/60495444/exporting-csv-in-r-with-trailing-zeros">this</a> question is very close, but not quite what I need. Allow me to explain:</p>
  <p>I am working with a series of data which requires me to tag according to an internal standard in which decimal places are used as separators. A generic example is below:</p>
  <pre><code>ItemA  1.6            
  ItemB  1.7             
  ItemB  1.8
  ItemB  1.9
  ItemB  1.10
  </code></pre>
  <p>Now, when this data gets exported as a csv file, the <code>1.10</code> gets changed to <code>1.1</code>. We already use <code>1.1</code> for something else, and unlike the linked question above, this tagging is done <em>in the program</em>. The data that is read in for processing does not contain the numbers. For reasons that are irritating, the output must be a csv, and I cannot change how the tagging is done. The output csv file goes elsewhere for further processing by someone else. Changing the class of the value does not have any effect, it seems.</p>
  <p>Added in from my comment to the first answer, for clarification: I try to tag as 1.10 in R, and it becomes 1.1 instead, mixing with my other 1.1. To avoid this, I have made them as.character('1.10') but that still doesn't help with the exported csv file. At no point is a csv containing '1.10' being read in.</p>
  <p>Is there any way to get r to write the <code>1.10</code> into the csv? I don't care how involved or &quot;janky&quot; it is.</p>