title: If a cell contains a certain character replace the whole cell in r
body: <p>I have several cells in a dataframe contain a number followed by an asterisk. I would like to replace the data in the cells with the * with NA. Here's sample data</p>
  
  <pre><code>a&lt;-c(1.23,"4.2*", 5,6,"8*")
  b&lt;-c(0.01,0.5,"3.687*",9,10)
  c&lt;-data.frame(a,b)
  c
  </code></pre>
  
  <p>I tried c[c=="*"]&lt;-NA but that only replaces cells that only contain the *</p>