title: Replace characters from a column of a data frame R
body: <p>I have a data frame </p>
  
  <pre><code>a &lt;- runif (10)
  b &lt;- letters [1:10]
  c &lt;- c(rep ("A-B", 4), rep("A_C", 6))
  data1 &lt;- data.frame (a, b, c)
  data1
  </code></pre>
  
  <p>And I wan to replace <code>_</code> in A_C of column c for <code>-</code> to have a data frame like data2:</p>
  
  <pre><code>z &lt;- c(rep ("A-B", 4), rep("A-C", 6))
  data2 &lt;- data.frame (a, b, z)
  data2
  </code></pre>
  
  <p>Do you know how I can do that?</p>