moving_av: Moving average.

View source: R/peaks finding.R

moving_avR Documentation

Moving average.

Description

The function calculate the moving average of an array of numbers and add NAs in the end to have the same number of arguments.

Usage

moving_av(x, smooth)

Arguments

x

a numerical array.

smooth

the smooth parameter is used to smooth the descriptive curve and avoid the inclusion of very small differences in values. The default (advised) is 10.


davidecannatanuig/openFaceR documentation built on Feb. 28, 2024, 7:21 p.m.