base/numeric.html" class="external-link">as.numeric</a></span><span class="op">(</span><span class="va">t</span><span class="op">)</span>, unit <span class="op">=</span> <span class="st">"s"</span>, utc <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></code></pre></div>
<p>The last line converts the R POSIX format time to a pandas
“datetime”, needed for Utide.</p>
<p>We can then perform the tidal analysis using the Utide
<code><a href="https://rdrr.io/r/stats/coef.h