Re: [R] help with function filter

From: jim holtman <jholtman_at_gmail.com>
Date: Mon, 09 Jun 2008 20:32:49 -0400

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_at_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_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<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]]


______________________________________________ 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 Tue 10 Jun 2008 - 00:51:47 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