Re: [R] Batch files process and String parsing

2010-07-07 Thread Nikhil Kaza
?list.files In particular look at pattern argument. ?file.rename ?lapply ?read.table ?"[" Nikhil Kaza Asst. Professor, City and Regional Planning University of North Carolina nikhil.l...@gmail.com On Jul 7, 2010, at 1:11 PM, jd6688 wrote: Here are what i am going to accomplish: I have 400

[R] Batch files process and String parsing

2010-07-07 Thread jd6688
Here are what i am going to accomplish: I have 400 files named as xxx.txt. the content of the file looks like the following: namecount 1. aaa 100 2. bbb2000 3. ccc300 4. ddd 3000 more that 1000 rows in each files. these are the areas i need help: 1. how can i on