Learn R Programming

specieschrom (version 1.0.0)

moymob1: m order simple moving average.

Description

Apply a m order simple moving average on each column of a matrix.

Usage

moymob1(x, m)

Value

smoothed matrix

Arguments

x

a matrix with in line the observations and in column the variables

m

an integer corresponding to the window size (2m+1)