h_rollav function

Rolling average of a daily time-series

Rolling average of a daily time-series

The function compute a rollong average of daily time-series values. NA values are removed.

h_rollav(file, ti = 7, position = "central")

Arguments

  • file: File name to proceed
  • ti: Time interval of computation in days (default = 7)
  • position: Position "central" or "right"

Details

The output file is named with a ro_ prefix. The computation can considers the values before and after the current time step (position = "central") or the values before the current time step. If the position is "central", the position must be an odd integer.

Author(s)

P. Chevallier - Apr 2020

  • Maintainer: Pierre Chevallier
  • License: GPL-2
  • Last published: 2024-08-17