               dimensions = "date",</span></span>
<span><span class="co">##                     max = -1)</span></span>
<span><span class="co">##     # rename the metric column so its found for modelling</span></span>
<span><span class="co">##     o$the_metric &lt;- o[, metric]</span></span>
<span><span class="co">##     </span></span>
<span><span class="co">##     o</span></span>
<span><span class="co">##     </span></span>
<span><span class="co">##  }</span></span></code></pre>
<div class="sourceCode" id=