title: Converting numbers to string in R while retaining trailing zeros/negative signs
body: <p>I have a <code>dataset</code> with the estimate and lower/upper bounds of the 95% confidence interval.</p>
  <p>Here is example code:</p>
  <pre><code>data &lt;- as.data.frame(cbind(-0.6142, -1.2190, -0.0092))
  
  colnames(data) &lt;- cbind(&quot;Estimate&quot;, &quot;LowerCI&quot;, &quot;UpperCI&quot;)
  
  paste(as.character(round(data$Estimate,1)), '(', as.character(round(data$LowerCI,1)), ',', as.character(round(data$UpperCI,1)), ')')
  </code></pre>
  <p>I am trying to create a variable that I can output to Word that will look like this:
  -0.6 (-1.2, -0.0)</p>
  <p>But I end up with:
  -0.6 ( -1.2 , 0 )</p>
  <p>The problems are:</p>
  <ol>
  <li>The spacing is off; there is a space before/after -1.2, and a space before/after 0.0</li>
  <li>There is no trailing zero</li>
  <li>Ideally I would like to have the negative sign in front of the 0 (&quot;-0.0&quot;) to convey that the 95% confidence interval does not cross zero.</li>
  </ol>
  <p>I'd appreciate any tips.</p>