Description Usage Arguments Value Examples
Smooth a numeric serie with a moving average windows
1 |
df |
data frame with the serie that you want to smooth. By default, t he function uses column 2. |
k |
numeric value with windows size., e.g.: 5 |
pos |
string with the position of the window:
|
data frame with the smooth serie.
1 2 3 4 5 6 7 8 9 10 11 | # Relative path to raw data
full_path <- system.file('extdata', package = "hydroToolkit")
# Apply function
cuevas <- read_IANIGLA(file = 'Cuevas.csv', path = full_path)
# Get air temperature
cuevas_tair <- cuevas[ , 1:2]
# Create a moving average serie of Tair
Tair_mov <- movAvg(df = cuevas_tair, k = 10, pos = 'izq')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.