title: convert all zeros of a matrix in R to NA
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11036989/replace-all-0-values-to-na-in-r">Replace all 0 values to NA in R</a>  </p>
  </blockquote>
  
  
  
  <p>Going off of this <a href="https://stackoverflow.com/questions/8161836/how-do-i-replace-na-values-with-zeros-in-r">question</a>. Is there a similar function in R such as <code>x[is.na(x)] &lt;- 0</code> except that it will changes every zero in a matrix to NA?</p>