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)

Bioconductor-mirror/RareVariantVis documentation built on May 31, 2017, 11:41 p.m.