movingAverage: Computation of moving average

Description Usage Arguments Value Author(s) Examples

Description

Function calculates moving average from a vector of numeric values.

Usage

1
movingAverage(x, n, centered)

Arguments

x

a vector of numeric values for which moving average is computed

n

numeric value giving the frame length for moving average

centered

logic variable indicating if moving average should be centered (default = FALSE)

Value

comp1

function returns vector of moving average values

Author(s)

Winston Chang

Examples

1
movingAverage(1:20, n=3, centered=FALSE)

tstokowy/RareVariantVis documentation built on May 17, 2019, 8:46 p.m.