Remove underscore from a string in R : <p>In my data.frame, I have a column of type <code>character</code>, where all the values look like this : <code>123_456</code> (three digits, an underscore, three digits).</p>

<p>I need to transform these values to a <code>numeric</code>, and <code>as.numeric(my_dataframe$my_column)</code> gives me a <code>NA</code>. Therefore I need to remove the underscore first, in order to do <code>as.numeric</code>.</p>

<p>How would I do that please ?</p>

<p>Thanks</p>
