Learn R Programming

enviGCMS (version 0.5.7)

ma: filter data by average moving box

Description

filter data by average moving box

Usage

ma(x, n)

Arguments

x

a vector

n

A number to indentify the size of the moving box.

Value

The filtered data

Examples

Run this code
# NOT RUN {
ma(rnorm(1000),5)
# }

Run the code above in your browser using DataLab