[R] sort order of a character sequence is different on windose and linux (linux result)

Witold E Wolski wewolski at gmail.com
Sun Jul 6 12:30:53 CEST 2014


This is the result of sorting a character sequence on a linux box
(with R . 3.10)

> bla = read.table("xx.txt",stringsAsFactors=F)
> bla = bla[,1]
> bla[1:10]
 [1] "1000_DGFVALSK_2_run0"   "1000_DGFVALSK_2_run0"
"1000_DGFVALSK_2_run0"   "1000_DGFVALSK_2_run0"
"1000_DGFVALSK_2_run0"
 [6] "1000_DGFVALSK_2_run0"   "1001_DGGAWGTEQR_2_run0"
"1001_DGGAWGTEQR_2_run0" "1001_DGGAWGTEQR_2_run0"
"1001_DGGAWGTEQR_2_run0"
> sort(bla)[1:10]
 [1] "1000_DGFVALSK_2_run0"   "1000_DGFVALSK_2_run0"
"1000_DGFVALSK_2_run0"   "1000_DGFVALSK_2_run0"
"1000_DGFVALSK_2_run0"
 [6] "1000_DGFVALSK_2_run0"   "1001_DGGAWGTEQR_2_run0"
"1001_DGGAWGTEQR_2_run0" "1001_DGGAWGTEQR_2_run0"
"1001_DGGAWGTEQR_2_run0"
>

I will send the result of sorting the content of xx.txt on windows
from the windows box in a moment.

the file xx.txt can be found at:
https://github.com/wolski/imsbInfer/blob/master/xx.txt



-- 
Witold Eryk Wolski



More information about the R-help mailing list