<span class="fu">vars</span>(<span class="fu">c</span>(x, <span class="fu">starts_with</span>(<span class="st">&quot;y&quot;</span>))), mean)</span>
<span id="cb22-6"><a href="#cb22-6" tabindex="-1"></a><span class="co"># -&gt;</span></span>
<span id="cb22-7"><a href="#cb22-7" tabindex="-1"></a>df <span class="sc">%&gt;%</span> <span class="fu">mutate</span>(<span class="fu">across</span>(<span class="fu">c</span>(x, <span class="fu">starts_with</span>(<span class="st">&quot;y&quot;</span>)), mean))</span>
