moving_average_pupil: Moving average function

Description Usage Arguments Value

View source: R/moving_average_pupil.R

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

1
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-zz/gazer documentation built on Nov. 11, 2019, 12:12 a.m.