movingAverage: Computation of moving average

Description Usage Arguments Value Author(s) Examples

View source: R/movingAverage.R

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)

RareVariantVis documentation built on Nov. 8, 2020, 11:08 p.m.