title: Setting default number of decimal places for printing
body: <p>I am running code to produce outputs where I want all the outputs to be printed with 1 decimal place. However the code uses functions which I use generally and I don't want to specify within these that the printed output is rounded.</p>
  
  <p>The answers to this question <a href="https://stackoverflow.com/questions/3443687/formatting-decimal-places-in-r">Formatting Decimal places in R</a> suggest using <code>options(digits=2)</code> or <code>round(x, digits=2)</code>.</p>
  
  <p>The first option is a general setting which is great for rounding <code>1.234</code> to <code>1.2</code> but would print <code>12.345</code> as <code>12</code></p>
  
  <p>The second option would work if put within the function but I don't want to touch them. How to set this generally?</p>