span class="fu">ifelse</span>(<span class="fu">sapply</span>(df, mean) <span class="sc">&gt;</span> <span class="dv">2</span>, <span class="st">&#39;left&#39;</span>, <span class="st">&#39;right&#39;</span>))</span>
<span id="cb7-4"><a href="#cb7-4" aria-hidden="true" tabindex="-1"></a><span class="fu">pandoc.table</span>(<span class="fu">head</span>(iris[,<span class="dv">1</span><span class="sc">:</span><span class="dv">3</span>], <span class="dv">2</span>))</span>
<span id="cb7-5"><a href="#cb7-5" aria-h