Re: [R] removing lower and upper quantiles from an arry

2011-02-17 Thread Greg Snow
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Maas James Dr (MED) > Sent: Thursday, February 17, 2011 3:09 AM > To: r-help@r-project.org > Subject: [R] removing lower and upper quantiles from an arry > > I'm trying to work out t

Re: [R] removing lower and upper quantiles from an arry

2011-02-17 Thread Peter Ehlers
Here's one more way: i[ findInterval(i, quantile(i, c(.25, .75))) == 1 ] Peter Ehlers On 2011-02-17 02:08, Maas James Dr (MED) wrote: I'm trying to work out the simplest way to remove the upper and lower quantiles, in this case upper and lower 25% from an array. I can do it in two steps b

Re: [R] removing lower and upper quantiles from an arry

2011-02-17 Thread Mohamed Lajnef
ensure that a reasonable answer can be extracted from a given body of data. > ~ John Tukey > > >> -Oorspronkelijk bericht- >> Van: r-help-boun...@r-project.org >> [mailto:r-help-boun...@r-project.org] Namens Maas James Dr (MED) >> Verzonden: donderdag 17 f

Re: [R] removing lower and upper quantiles from an arry

2011-02-17 Thread Mohamed Lajnef
ensure that a reasonable answer can be extracted from a given body of data. > ~ John Tukey > > >> -Oorspronkelijk bericht- >> Van: r-help-boun...@r-project.org >> [mailto:r-help-boun...@r-project.org] Namens Maas James Dr (MED) >> Verzonden: donderdag 17 f

Re: [R] removing lower and upper quantiles from an arry

2011-02-17 Thread andrija djurovic
Try this: i[quantile(i,.25)< i & i < quantile(i,.75)] Andrija On Thu, Feb 17, 2011 at 11:08 AM, Maas James Dr (MED) wrote: > I'm trying to work out the simplest way to remove the upper and lower > quantiles, in this case upper and lower 25% from an array. I can do it in > two steps but when I

Re: [R] removing lower and upper quantiles from an arry

2011-02-17 Thread Dimitris Rizopoulos
have a look at the help page for ?'&', try also this: i <- 1:20 qs <- quantile(i, c(.25, 0.75)) i[i > qs[1] & i < qs[2]] I hope it helps. Best, Dimitris On 2/17/2011 11:08 AM, Maas James Dr (MED) wrote: I'm trying to work out the simplest way to remove the upper and lower quantiles, in thi

Re: [R] removing lower and upper quantiles from an arry

2011-02-17 Thread ONKELINX, Thierry
r-help@r-project.org > Onderwerp: [R] removing lower and upper quantiles from an arry > > I'm trying to work out the simplest way to remove the upper > and lower quantiles, in this case upper and lower 25% from an > array. I can do it in two steps but when I try it in one, it >

[R] removing lower and upper quantiles from an arry

2011-02-17 Thread Maas James Dr (MED)
I'm trying to work out the simplest way to remove the upper and lower quantiles, in this case upper and lower 25% from an array. I can do it in two steps but when I try it in one, it fails. Is there something simple missing from my syntax or are there other simple elegant way to accomplish thi