title: Replacing a text in all columns with another text in datatable R
body: <p>Found solution for <code>dataframe</code> to replace a text in all columns with another text. But i could not use the same for <code>datatable</code>. Below is what i tried. But when changed <code>data.frame</code> to <code>data.table</code> it doesnt give the correct data.</p>
  
  <pre><code>DF&lt;- data.frame(lapply(DT, function(x) {gsub("abc", "xyz", x)}))
  </code></pre>
  
  <p>I need to find and replace all occurances of <code>abc</code> with <code>xyz</code> in all columns of a <code>data.table</code> object</p>