Skip to content
Back to formatted view

Raw Message

Message-ID: <51B84F73.2000802@sapo.pt>
Date: 2013-06-12T10:37:39Z
From: Rui Barradas
Subject: How to get a running mean result by R?
In-Reply-To: <CAMUSh4q+tk964zPa60_6uuuGXf7YXY=hoPfCzfjhEC7Lxed7pQ@mail.gmail.com>

Hello,

You can use, for instance, function ma() in package forecast.

# if not yet installed
#install.packages('forecast', dependencies = TRUE)
library(forecast)

?ma


Hope this helps,

Rui Barradas


Em 12-06-2013 08:21, Jie Tang escreveu:
> Hi R users:
>    I have a big data and want to calculate the running mean of this data .
> How can I get this kind of result ? I have check the command "mean"
> it seems "mean" could not get the running mean?
>