6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb26-1" title="1">a &lt;-<span class="st"> </span><span class="kw"><a href="reference/ifthenelse.html">if_else</a></span>(<span class="dv">1</span>, is.numeric, <span class="op">~</span><span class="st"> "Yay"</span>, <span class="op">~</span><span class="st"> "Nay"</span>)</a>
<a class="sourceLine" id="cb26-2" title="2">a</a>
<a class="sourceLine" id="cb26-3" title="3"><span class="co">#&gt; [1] "Yay"</span></a></code></pre><