Re: [R] How to: Read Multi-filtes and sort to different files

2009-03-25 Thread Carlos J. Gil Bellosta
Dear Mr. Li, To make things simpler, you could place the files corresponding to different stations in different directories. Then: 1) I would loop over the directories. 2) I would use dir and loop through the resulting vector (that would contain the file names). 3) I would use read.table with p

[R] How to: Read Multi-filtes and sort to different files

2009-03-25 Thread Qianfeng Li
new R user has a question: I have several hundreds of .txt files from different monitoring sites over several years. (1) different site has a unique name( such as : ST2.20090321.txt = Sation 2 2009 March 21 data, ST3.20090322=Station3, 2009, March 22 data). (2) different site has different