moving_average: Performs a running average on a numeric vector

View source: R/Main_functions.R

moving_averageR Documentation

Performs a running average on a numeric vector

Description

Performs a running average on a numeric vector

Usage

moving_average(x, n)

Arguments

x

a numeric vector

n

integer, radius of the moving avergae (number of points extending on each side of the center point on which the average is computed)

Value

a smoothed numeric vector


VoisinneG/InteRact documentation built on May 17, 2022, 11:40 p.m.