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


jgeller112/gazer documentation built on Jan. 13, 2020, 1:04 p.m.