> 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
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
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
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
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
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
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
>
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
8 matches
Mail list logo