ma {AeRobiology} | R Documentation |
Moving Average Calculator
Description
Function to calculate the moving average of a given numeric vector. The order of the moving average may be customized by the user (man
argument).
Usage
ma(data, man = 10, warnings = FALSE)
Arguments
data |
A |
man |
An |
warnings |
A |
Value
This function returns a vector with the moving average of the input data.
Examples
data("munich_pollen")
ma(data = munich_pollen$Betula, man = 10, warnings = FALSE)
[Package AeRobiology version 2.0.1 Index]