title: replace .. with . in R
body: <p>How can I replace .. with .</p>
  
  <p>I tried something like:</p>
  
  <pre><code>names(dataset) &lt;- gsub("[/./.]",".",names(dataset))
  </code></pre>
  
  <p>But it doesn't work as I hoped.</p>