Witold E Wolski
2014-Jul-06 10:32 UTC
[R] sort order of a character sequence is different on windose and linux (windows result)
And here is the result when sorting the same sequence on a windows box:> 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" [5] "1000_DGFVALSK_2_run0" "1000_DGFVALSK_2_run0" "1001_DGGAWGTEQR_2_run0" "1001_DGGAWGTEQR_2_run0" [9] "1001_DGGAWGTEQR_2_run0" "1001_DGGAWGTEQR_2_run0"> sort(bla)[1:10][1] "1_AAAAAAALQAK_2_run0" "1_AAAAAAALQAK_2_run0" "1_AAAAAAALQAK_2_run0" "1_AAAAAAALQAK_2_run0" [5] "1_AAAAAAALQAK_2_run0" "1_AAAAAAALQAK_2_run0" "10_AAATAEEPDPK_2_run0" "10_AAATAEEPDPK_2_run0" [9] "10_AAATAEEPDPK_2_run0" "10_AAATAEEPDPK_2_run0" -- Witold Eryk Wolski