ass="op">==</span><span class="st"> </span><span class="dv">2</span>, <span class="dv">1</span>, <span class="dv">0</span>)</a>
<a class="sourceLine" id="cb1-12" data-line-number="12">dat<span class="op">$</span>Y &lt;-<span class="st"> </span><span class="kw">as.numeric</span>(dat<span class="op">$</span>Y); dat<span class="op">$</span>Y &lt;-<span class="st"> </span><span class="kw">ifelse</span>(dat<span class="op">$</span>Y <span class="op">==</span><span class="st"> </span><span class="dv">2</span>, <s