[R] ordering in list.files

From: Shubha Vishwanath Karanth <shubhak_at_ambaresearch.com>
Date: Fri, 18 May 2007 20:16:31 +0530

Hi R,  

My csv files are stored in the order, '1abc.csv', '2def.csv', '3ghi.csv', '10files.csv' in a folder. When I read this into R from list.files (R command: x=list.files("Z:/CSV/fold",full.names=F), I don't get the same order, instead I get the order as "10files.csv" "1abc.csv" "2def.csv" "3ghi.csv". But I don't want this ordering. So, how do I maintain the oder which I have in my physical folder?  

Thanks in advance


        [[alternative HTML version deleted]]

R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 18 May 2007 - 14:56:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 18 May 2007 - 16:30:57 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.