[R] help with function filter

From: wilquin Minaya <khajqui01_at_hotmail.com>
Date: Mon, 09 Jun 2008 17:08:08 -0400

 Hi everybody  

   I need to create a program using the function filter with this vector. MATDINAMIC$VELOCIDADFIN[1:1000]    That´s why I want to identify when use the mean and the median because I have problems.  

   I want to know if I am using correct this: filter(MATDINAMIC$VELOCIDADFIN[1:1000],rep(1/3,3)) : ¿ is it for the mean or not?  

and filter(MATDINAMIC$VELOCIDADFIN[1:1000],rep(3,3)), is it for the median or not?  

     How can I know or identify the right method?  

  I hope to receive an answer as soon as possible.  


	[[alternative HTML version deleted]]


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 09 Jun 2008 - 22:35:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 10 Jun 2008 - 01:30:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive