moving_average_pupil: Moving average function

View source: R/moving_average_pupil.R

moving_average_pupilR Documentation

Moving average function

Description

Creates a moving average using a specified averageing window if n is 5, then it uses the target value, 2 preceding and 2 following

Usage

moving_average_pupil(x, n = 5, centered = TRUE)

Arguments

x

data

n

sed for moving window

centered

whether moving average window should be centered (TRUE) or trailing (FALSE)

Value

return sum divided by count


dmirman/gazer documentation built on Aug. 1, 2022, 2:02 p.m.