title: How to replace values in one line by NA in R?
body: <p>I have a text file:</p>
  
  <pre><code>df=read.table("E:\\value.txt", sep="\t")
  df
    k    jh   fg          
  1  208  0.15 0.17  
  2  304  0.00 0.08
  </code></pre>
  
  <p>Now I want to replace unwanted values in <code>k</code> with <code>NA</code></p>
  
  <pre><code>df$k[df$k &gt;= 500 ]=NA
  </code></pre>
  
  <p>There is no problem with that but I would like to replace all corresponding values (in the same line in <code>jh and fg</code> ) by <code>NA</code> as well!</p>