NICE DDE
It solves my problem !
Awesome stuff
--
View this message in context:
http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4404424.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https:
On 20-Feb-2012 Petr Savicky wrote:
> On Mon, Feb 20, 2012 at 05:55:30AM -0800, statquant2 wrote:
>> I did, but this does not give the answer to my question...
>> Anybody knows how to tweack the behaviour of sort or how to do ?
>
> Hi.
> Try this
>
> Sys.setlocale("LC_COLLATE", "C")
>
> This c
On 2012-2-20 23:15, Rui Barradas wrote:
Could it be OS related?
Yes, it seems. I tried it on my local windows xp and redhat linux
server, and got different results. Hope it will be fixed in the future
versions. Maybe we should keep alert to check whether the results are
consistent when trans
Sorry, just made a mistake. This is the result from windows xp.
> sort(c("X.","X0B"))
[1] "X." "X0B"
> sort(c("X.Z","X0B.Z"))
[1] "X.Z" "X0B.Z"
> R.version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major
On Mon, Feb 20, 2012 at 04:56:21PM +0100, Petr Savicky wrote:
> On Mon, Feb 20, 2012 at 05:55:30AM -0800, statquant2 wrote:
> > I did, but this does not give the answer to my question...
> > Anybody knows how to tweack the behaviour of sort or how to do ?
>
> Hi.
>
> Try this
>
> Sys.setlocale
It seems OS-dependent. I got different results when trying it on windows
xp and Redhat linux.
> R.version
_
platform x86_64-unknown-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 2
minor 9.1
year
Ok I have :
R) str(R.Version())
List of 13
$ platform : chr "x86_64-unknown-linux-gnu"
$ arch : chr "x86_64"
$ os: chr "linux-gnu"
$ system: chr "x86_64, linux-gnu"
$ status: chr ""
$ major : chr "2"
$ minor : chr "12.2"
$ year
Hello,
statquant2 wrote
>
> Ok so it changed from 2.12.2 to 2.14.1 ??
> Can somebody tell me how to modify my sort or whatever to get the save
> resilt that I would get in 2.14.1 ?
>
> Cheers
>
I don't know about 2.12.2 but for 2.12.0 I get:
> R.version
_
On Mon, Feb 20, 2012 at 05:55:30AM -0800, statquant2 wrote:
> I did, but this does not give the answer to my question...
> Anybody knows how to tweack the behaviour of sort or how to do ?
Hi.
Try this
Sys.setlocale("LC_COLLATE", "C")
This comes from ?locale and reads there
Sys.setloca
I don't *think* it's version specific, but rather it depends on your
(still unstated) locale, as the documentation goes to great lengths to
point out. Change that and you might see different behaviors.
Michael
On Mon, Feb 20, 2012 at 8:55 AM, statquant2 wrote:
> I did, but this does not give the
I did, but this does not give the answer to my question...
Anybody knows how to tweack the behaviour of sort or how to do ?
--
View this message in context:
http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4404091.html
Sent from the R help mailing list archive at Nabble.com.
_
Ok so it changed from 2.12.2 to 2.14.1 ??
Can somebody tell me how to modify my sort or whatever to get the save
resilt that I would get in 2.14.1 ?
Cheers
--
View this message in context:
http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4403858.html
Sent from the R help mailing list arch
See ?Comparison, which holds some warnings about what to expect when
sorting strings.
Am 20.02.2012 11:51, schrieb Petr Savicky:
On Mon, Feb 20, 2012 at 02:18:42AM -0800, statquant2 wrote:
Hi all, I am having difficulties to understand how R sort strings:
If I do
R) sort(c("X.","X0B"))
[1]
"Petr Savicky" wrote in message
news:20120220105153.gc21...@cs.cas.cz...
> On Mon, Feb 20, 2012 at 02:18:42AM -0800, statquant2 wrote:
>> Hi all, I am having difficulties to understand how R sort strings:
>>
>> If I do
>> R) sort(c("X.","X0B"))
>> [1] "X." "X0B"
>>
>> So for me, as far as lexic
On Mon, Feb 20, 2012 at 02:18:42AM -0800, statquant2 wrote:
> Hi all, I am having difficulties to understand how R sort strings:
>
> If I do
> R) sort(c("X.","X0B"))
> [1] "X." "X0B"
>
> So for me, as far as lexicographic order is concerned I can add whatever to
> the end, the order will remain
15 matches
Mail list logo