aboutsummaryrefslogtreecommitdiff
path: root/docs/reference/twa.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference/twa.html')
-rw-r--r--docs/reference/twa.html39
1 files changed, 31 insertions, 8 deletions
diff --git a/docs/reference/twa.html b/docs/reference/twa.html
index fad5fd9..8f8e98f 100644
--- a/docs/reference/twa.html
+++ b/docs/reference/twa.html
@@ -21,18 +21,24 @@
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
+<!-- sticky kit -->
+<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
+
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
-<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
-
-
+
+
+
<meta property="og:title" content="Calculate a time weighted average concentration — twa" />
<meta property="og:description" content="The moving average is built only using the values in the past, so
the earliest possible time for the maximum in the time series returned
is after one window has passed." />
<meta name="twitter:card" content="summary" />
+
+
+
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@@ -55,8 +61,12 @@ is after one window has passed." />
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
- <a class="navbar-brand" href="../index.html">pfm</a>
+ <span class="navbar-brand">
+ <a class="navbar-link" href="../index.html">pfm</a>
+ <span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.4.5</span>
+ </span>
</div>
+
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
@@ -71,8 +81,14 @@ is after one window has passed." />
</ul>
<ul class="nav navbar-nav navbar-right">
-
+ <li>
+ <a href="https://github.com/jranke/pfm">
+ <span class="fa fa-github fa-lg"></span>
+
+ </a>
+</li>
</ul>
+
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@@ -80,24 +96,28 @@ is after one window has passed." />
</header>
- <div class="row">
+<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Calculate a time weighted average concentration</h1>
+ <small class="dont-index">Source: <a href='https://github.com/jranke/pfm/blob/master/R/twa.R'><code>R/twa.R</code></a></small>
+ <div class="hidden name"><code>twa.Rd</code></div>
</div>
+ <div class="ref-description">
<p>The moving average is built only using the values in the past, so
the earliest possible time for the maximum in the time series returned
is after one window has passed.</p>
+ </div>
<pre class="usage"><span class='fu'>twa</span>(<span class='no'>x</span>, <span class='kw'>window</span> <span class='kw'>=</span> <span class='fl'>21</span>)
<span class='co'># S3 method for one_box</span>
<span class='fu'>twa</span>(<span class='no'>x</span>, <span class='kw'>window</span> <span class='kw'>=</span> <span class='fl'>21</span>)</pre>
- <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
+ <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
@@ -112,7 +132,7 @@ is after one window has passed.</p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
- <p><code><a href='max_twa.html'>max_twa</a></code></p>
+ <div class='dont-index'><p><code><a href='max_twa.html'>max_twa</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
@@ -156,5 +176,8 @@ is after one window has passed.</p>
</footer>
</div>
+
+
</body>
</html>
+

Contact - Imprint