Learn R Programming

enviGCMS (version 0.7.1)

ma: filter data by average moving box

Description

filter data by average moving box

Usage

ma(x, n)

Value

The filtered data

Arguments

x

a vector

n

A number to identify the size of the moving box.

Examples

Run this code
ma(rnorm(1000),5)

Run the code above in your browser using DataLab