From e6f968cf97ed6ca9268e6098d86ba63ff2c6d2b0 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 24 May 2017 16:07:35 +0200 Subject: Fix for the sawtooth function for repeated applications For n > 2, the second application was made at 2 * i instead of i. --- man/sawtooth.Rd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man') 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} -- cgit v1.2.1