4-10" tabindex="-1"></a></span>
<span id="cb14-11"><a href="#cb14-11" tabindex="-1"></a><span class="co"># Extract time-series from ROI</span></span>
<span id="cb14-12"><a href="#cb14-12" tabindex="-1"></a>roi_ts <span class="ot">&lt;-</span> <span class="fu">series_roi</span>(fmri, roi)</span>
<span id="cb14-13"><a href="#cb14-13" tabindex="-1"></a>roi_mat <span class="ot">&lt;-</span> <span class="fu">values</span>(roi_ts)  <span class="co"># T x N matrix</span></span>
<span id="cb14-14"><a href="#cb14-14