[R] Problem on results of runmean function

anna lippelanna24 at hotmail.com
Thu Jan 21 23:13:01 CET 2010


Hello R specialists,
I am using the runmean function to get the moving averages of a time serie.
Here is the code that I enter:
 ma<-runmean(na.remove(myTimeSerie),20,align="right",endrule="NA")
I get the vector that I want except for one detail: the first 20 values are
supposed to be NAs but I get a value at the 10th element while it should be
a NA value as well. Any idea about what it could be? 
Anna
-- 
View this message in context: http://n4.nabble.com/Problem-on-results-of-runmean-function-tp1063637p1063637.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list