run.mean: Moving averages

Description Usage Arguments Value Author(s) Examples

View source: R/run.mean.R

Description

This function calculates moving averages for data series.

Usage

1

Arguments

x

A vector with the data series.

window

Number of observations to be taken into account in the estimation of the local mean.

Value

Returns a vector with the estimated local averages.

Author(s)

Alexander Correa-Metrio.

Examples

1
run.mean(c(1:10),window=3)

Example output

Loading required package: MASS
Loading required package: vegan
Loading required package: permute
Loading required package: lattice
This is vegan 2.5-3
[1] 2 3 4 5 6 7 8 9

paleoMAS documentation built on May 29, 2017, 8:26 p.m.