title: Round depending on number of decimal places
body: <p><strong>What I would like to to</strong></p>
  
  <p>I would like to round all numeric values of a large data set depending on their actual decimal place.</p>
  
  <p>E.g. for the <code>df</code> below, I would like to round all numbers, numbers with one decimal place to a full number and numbers with two decimal places to one decimal place. </p>
  
  <p><strong>Update</strong>
  In the original post, I used <code>iris</code> as data set. Since <code>iris</code> does only have 1 decimal place, I added a new data set:</p>
  
  <pre><code>   df &lt;- tibble(one=round(runif(100,0,10), 1),
                   two=round(runif(100,0,10), 2),
                   characters=rep("thanks",100))
  </code></pre>