View source: R/HelpfullFunctions.R
Calculates a sensible moving average based on smoothing parameter
1 | smooth.average(input, smooth = 5, show = "value")
|
smooth |
How much should be smoothed. This is the total value of used data points, so (smooth-1)/2 is smoothed in either direction. |
show |
Either 'value' for the actual value or 'sd' for a running of the averaged Standarddeviation within the smoothing range |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.