pan> <span class="op">+</span> <span class="fu"><a href="https://rdrr.io/r/base/ifelse.html" class="external-link">ifelse</a></span><span class="op">(</span><span class="va">grp2</span><span class="op">==</span><span class="fl">1</span>,<span class="fl">3</span>,<span class="fl">0</span><span class="op">)</span></span>
<span><span class="va">df.biv</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op