I think you can get the median with:
filter(MATDINAMIC$VELOCIDADFIN[1:1000],c(0, 1, 0))
On Mon, Jun 9, 2008 at 5:08 PM, wilquin Minaya <khajqui01@hotmail.com>
wrote:
>
> 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.
>
> Wilquin
> _________________________________________________________________
>
>
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help@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<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem you are trying to solve?
[[alternative HTML version deleted]]