class="co">## Creating a 5-min time sequence and counting its length</span></span>
<span><span class="va">dt</span>  <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/seq.html" class="external-link">seq</a></span><span class="op">(</span> from<span class="op">=</span><span class="fu"><a href="https://rdrr.io/r/base/as.POSIXlt.html" class="external-link">as.POSIXct</a></span><span class="op">(</span><span class="st">"2021-06-30 00:00"</span><span class="op">)</span>, to<span clas