 with na.rm = TRUE</span>
<span class='no'>dat2</span> <span class='kw'>&lt;-</span> <span class='no'>dat</span>
<span class='no'>dat2</span>[<span class='fl'>1</span>, <span class='fl'>1</span>] <span class='kw'>&lt;-</span> <span class='fl'>NA</span>
<span class='no'>dat2</span>[<span class='fl'>2</span>, <span class='fl'>2</span>] <span class='kw'>&lt;-</span> <span class='fl'>NA</span>
<span class='no'>dat2</span>[<span class='fl'>3</span>, <span class='fl'>3</span>] <span class='kw'>&lt;-</span> <span 