Re: [R] sorting of files using system

2016-04-09 Thread Adrian Dușa
I suspect it is a problem related to locales: R and the base Ubuntu might be using different locales, hence the source of the different sorting. Can't say if this is the problem in your case, but it might be. Adrian On Sat, Apr 9, 2016 at 12:18 AM, Maria Ninova wrote: > Hello, I came across the

Re: [R] sorting of files using system

2016-04-08 Thread Jeff Newmiller
Wrong list. This is not the Ubuntu shell support mailing list. The fact that you are using R to get at the operating system command line doesn't make this an R question. -- Sent from my phone. Please excuse my brevity. On April 8, 2016 2:18:40 PM PDT, Maria Ninova wrote: >Hello, I came acros

[R] sorting of files using system

2016-04-08 Thread Maria Ninova
Hello, I came across the following oddity when it comes to file order using the system command: different system commands return files in a different order: This is a real filenames example: > system("ls gw1kb_tables/rpkm_47*", intern=T) [1] "gw1kb_tables/rpkm_479_Input.tab" [2] "gw1kb_tables/r