how to get rid of NaN value in R : <p>I have a variable in R. I am going to do PCA analysis. but I have a lot of NaN values. do you guys know how to get rid of them?</p>

<p>my data looks like this:</p>

<pre><code>        11819 11820 11821      
s1  1.1547005 NaN  1.1547005 
s2 -0.5773503 NaN -0.5773503 
s4 -0.5773503 NaN -0.5773503 
</code></pre>

<p>11819, 11820 and 11821 are col names and s1, s2 and s4 are row names.
thanks</p>
