Description Usage Arguments Value
View source: R/simulate.helpers.R
Generate a difference that varies linearly over time. Transition times can be equal, in which case there will be no transition (see generate.step.effect). If both are zero, it is effectively a flat difference applied at every time point (see generate.flat.effect).
1 2 3 4 5 6 | generate.linear.effect(
time.vector,
diff.amplitude = 1,
transition.start.time = 0,
transition.end.time = 0
)
|
time.vector |
A numeric vector of time values |
diff.amplitude |
The numeric amplitude of the difference (Default: 1) |
transition.start.time |
When does the effect start, will not be applied if NA. (Default: 0) |
transition.end.time |
When does the effect end, will not be applied if NA. (Default: 0) |
A numeric vector containing the effect at each provided time point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.