p">[</span><span class="va">rows2</span><span class="op">]</span></span>
<span><span class="va">y1</span> <span class="op">&lt;-</span> <span class="va">y</span><span class="op">[</span><span class="va">rows1</span><span class="op">]</span></span>
<span><span class="va">y2</span> <span class="op">&lt;-</span> <span class="va">y</span><span class="op">[</span><span class="va">rows2</span><span class="op">]</span></span></code></pre></div>
<div class="section level3">
<h3 id="scalar-on-function-regression">Sc