From 803fe13e505960fddccdbd4dcb524715f5eb068d Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 18 Sep 2019 18:18:40 +0200 Subject: Add url: tag to _pkgdown.yml, typo, update docs --- docs/reference/sawtooth.html | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'docs/reference/sawtooth.html') diff --git a/docs/reference/sawtooth.html b/docs/reference/sawtooth.html index a94833c..050e5eb 100644 --- a/docs/reference/sawtooth.html +++ b/docs/reference/sawtooth.html @@ -16,13 +16,15 @@ - + + - - + + + @@ -48,6 +50,7 @@ n and i are disregarded." /> + @@ -72,7 +75,7 @@ n and i are disregarded." /> @@ -95,13 +93,14 @@ n and i are disregarded." /> +
@@ -112,7 +111,7 @@ n and i are disregarded." />
-
sawtooth(x, n = 1, i = 365, applications = data.frame(time = seq(0,
+    
sawtooth(x, n = 1, i = 365, applications = data.frame(time = seq(0,
   (n - 1) * i, length.out = n), amount = 1))

Arguments

@@ -140,13 +139,12 @@ the corresponding amounts applied in the second column.

Examples

-
applications = data.frame(time = seq(0, 14, by = 7), amount = c(1, 2, 3)) +
applications = data.frame(time = seq(0, 14, by = 7), amount = c(1, 2, 3)) pred <- one_box(10) -plot(sawtooth(pred, applications = applications))
-m_2 <- mkinmod(parent = mkinsub("SFO", "m1"), m1 = mkinsub("SFO"))
#> Successfully compiled differential equation model from auto-generated C code.
fit_2 <- mkinfit(m_2, FOCUS_2006_D, quiet = TRUE) -pred_2 <- one_box(fit_2, ini = 1) +plot(sawtooth(pred, applications = applications))
+m_2 <- mkinmod(parent = mkinsub("SFO", "m1"), m1 = mkinsub("SFO"))
#> Successfully compiled differential equation model from auto-generated C code.
fit_2 <- mkinfit(m_2, FOCUS_2006_D, quiet = TRUE)
#> Warning: Observations with value of zero were removed from the data
pred_2 <- one_box(fit_2, ini = 1) pred_2_saw <- sawtooth(pred_2, 2, 7) -plot(pred_2_saw, max_twa = 21, max_twa_var = "m1")
+plot(pred_2_saw, max_twa = 21, max_twa_var = "m1")
max_twa(pred_2_saw)
#> $max #> parent m1 #> 0.7834480 0.8617048 @@ -171,19 +169,23 @@ the corresponding amounts applied in the second column.

+
+ + -- cgit v1.2.1