Replace period character (".") from an entire data.table column in R : <p>I am trying to remove all the period characters (<code>.</code>) from a data.table using <code>gsub</code>. Unfortunately, it isn't working. How do you propperly express the pattern to describe the periods to then replace them by nothing?</p>

<p>My code:</p>

<pre><code>dt[, Address := gsub(".", "", Address)]
</code></pre>

<p>Result:</p>

<pre><code>head(dt$Address)
[1] "" "" "" "" "" ""
</code></pre>

<p>I'm guessing that when <code>pattern = "."</code> R thinks I'm refering to the entire content of the object in question. What am I doing wrong?</p>
