ema | R Documentation |
This function smoothes the data using an exponential moving average filter with a specified decay.
ema(lightVar, decay, sampling_int = NULL, beta = FALSE)
lightVar |
Numeric vector containing the light data. Missing values are replaced by 0. |
decay |
Numeric value or string in the format "[numeric] [unit]", with
possible units ("seconds","minutes","hours","days"); units can be
abbreviated, see |
sampling_int |
Numeric. Sampling interval in seconds. Must be specified if 'decay' is a string in the format "[numeric] [unit]". Defaults to NULL. |
beta |
Logical. Is 'decay' refering directly to beta value? If TRUE, 'decay' must be a numeric value. |
Numeric vector of filtered light data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.