8"><a href="#cb1-8" tabindex="-1"></a><span class="co"># Convert daily data to weekly data</span></span>
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a><span class="fu">daytoweek</span>(dailydata)</span></code></pre></div>
</div>



<!-- code folding -->


<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
  (function () {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src  = "https://mathjax.rstudio.com/lat