Tim,
My comment were not directed at you but at any conception that R should honor
any conditions it does not pledge to honor. You pointed out a clear example
that it does not get identical results when you use two things that both look
like sorting algorithms. Yes, Stefan asked the original
Dat1 <- c(0.6, 0.5, 0.3, 0.2, 0.1, 0.1, 0.2)
print(order(Dat1))
print(sort(Dat1))
Compare output
-Original Message-
From: R-help On Behalf Of Martin Maechler
Sent: Monday, January 31, 2022 9:04 AM
To: Stefan Fleck
Cc: r-help@r-project.org
Subject: Re: [R] [External] Weird behaviour
> Stefan Fleck
> on Sun, 30 Jan 2022 21:07:19 +0100 writes:
> it's not about the sort order of the ties, shouldn't all the 1s in
> order(c(2,3,4,1,1,1,1,1)) come before 2,3,4? because that's not what
> happening
aaah.. now we are getting somewhere:
It looks you have
Thanks everyone, i guess i just had a too long and confusing coding
session. I tried it again and now everything seems to work. sorry for the
fuzz.
On Sun, Jan 30, 2022 at 9:17 PM Avi Gross wrote:
> Stefan,
>
> I did not replicate your results as it works fine and applying the order
> result in
4 matches
Mail list logo