aboutsummaryrefslogtreecommitdiff
path: root/man/sawtooth.Rd
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2017-05-24 16:07:35 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2017-05-24 16:07:35 +0200
commite6f968cf97ed6ca9268e6098d86ba63ff2c6d2b0 (patch)
tree9a6bcfc76838ce8c5a30163e98745d0ca84494b4 /man/sawtooth.Rd
parent4835e20d1d08203657ab616600286ad9dfd71344 (diff)
Fix for the sawtooth function for repeated applications
For n > 2, the second application was made at 2 * i instead of i.
Diffstat (limited to 'man/sawtooth.Rd')
-rw-r--r--man/sawtooth.Rd4
1 files changed, 2 insertions, 2 deletions
diff --git a/man/sawtooth.Rd b/man/sawtooth.Rd
index 3b1bd3e..aba3428 100644
--- a/man/sawtooth.Rd
+++ b/man/sawtooth.Rd
@@ -4,8 +4,8 @@
\alias{sawtooth}
\title{Create decline time series for multiple applications}
\usage{
-sawtooth(x, n = 1, i = 365, applications = data.frame(time = seq(0, 0 + n
- * i, length.out = n), amount = 1))
+sawtooth(x, n = 1, i = 365, applications = data.frame(time = seq(0, (n -
+ 1) * i, length.out = n), amount = 1))
}
\arguments{
\item{x}{A \code{\link{one_box}} object}

Contact - Imprint