On Apr 17, 2013, at 10:41 , Patrick Burns wrote:
> There is a blog post about this:
>
> http://www.portfolioprobe.com/2012/07/26/r-inferno-ism-order-is-not-rank/
>
> And proof that it is possible to confuse them
> even when you know the difference.
It usually helps to remember that x[order(x)]
There is a blog post about this:
http://www.portfolioprobe.com/2012/07/26/r-inferno-ism-order-is-not-rank/
And proof that it is possible to confuse them
even when you know the difference.
Pat
On 16/04/2013 19:10, Julio Sergio wrote:
Julio Sergio gmail.com> writes:
I thought I've understoo
William Dunlap tibco.com> writes:
>
> I think Duncan said that order and rank were inverses (if there are no
ties). order() has
> period 2 so order(order(x)) is also rank(x) if there are no ties. E.g.,
>
Thanks William! This is very interesting. So, applying order two times I can
have a ra
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf
> Of Julio Sergio
> Sent: Tuesday, April 16, 2013 11:10 AM
> To: r-h...@stat.math.ethz.ch
> Subject:
[See in-line below[
On 16-Apr-2013 17:51:41 Julio Sergio wrote:
> I thought I've understood the 'order' function, using simple examples like:
>
>order(c(5,4,-2))
>[1] 3 2 1
>
> However, I arrived to the following example:
>
>order(c(2465, 2255, 2085, 1545, 1335, 1210, 920, 210, 210,
Julio Sergio gmail.com> writes:
>
> I thought I've understood the 'order' function, using simple examples like:
Thanks to you all!... As Sarah said, what was damaged was my understanding (
;-) )... and as Duncan said, I was confusing 'order' with 'rank',
thanks! Now I understand the 'order' fu
On 16/04/2013 1:51 PM, Julio Sergio wrote:
I thought I've understood the 'order' function, using simple examples like:
order(c(5,4,-2))
[1] 3 2 1
However, I arrived to the following example:
order(c(2465, 2255, 2085, 1545, 1335, 1210, 920, 210, 210, 505, 1045))
[1] 8 9 10 7
465
#$ix
# [1] 8 9 10 7 11 6 5 4 3 2 1
A.K.
- Original Message -
From: Julio Sergio
To: r-h...@stat.math.ethz.ch
Cc:
Sent: Tuesday, April 16, 2013 1:51 PM
Subject: [R] I don't understand the 'order' function
I thought I've understood the 'order'
Hello,
Inline.
Em 16-04-2013 18:51, Julio Sergio escreveu:
I thought I've understood the 'order' function, using simple examples like:
order(c(5,4,-2))
[1] 3 2 1
However, I arrived to the following example:
order(c(2465, 2255, 2085, 1545, 1335, 1210, 920, 210, 210, 505, 1045))
Hi Julio,
On Tue, Apr 16, 2013 at 1:51 PM, Julio Sergio wrote:
> I thought I've understood the 'order' function, using simple examples like:
>
>order(c(5,4,-2))
>[1] 3 2 1
>
> However, I arrived to the following example:
>
>order(c(2465, 2255, 2085, 1545, 1335, 1210, 920, 210, 210, 50
I thought I've understood the 'order' function, using simple examples like:
order(c(5,4,-2))
[1] 3 2 1
However, I arrived to the following example:
order(c(2465, 2255, 2085, 1545, 1335, 1210, 920, 210, 210, 505, 1045))
[1] 8 9 10 7 11 6 5 4 3 2 1
and I was completely perpl
11 matches
Mail list logo