Re: [R] how to process this in R

2010-07-08 Thread Tony B
I don't have R on the netbook I'm writing this from, but I *think* the following will work: > 1. how can i only read in the files with the string patterns ggg or fff as > part of the file names? >   for instance, I only need the file names with the ggg or fff in it >      x_ggg_y_1.txt >  

Re: [R] how to process this in R

2010-07-07 Thread Rainer M Krug
Hi On Wed, Jul 7, 2010 at 7:49 PM, jd6688 wrote: > > 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 th

Re: [R] how to process this in R

2010-07-07 Thread Sarah Goslee
Hi, You might want to check out ?system ?read.table and ?subset and also ?sub and maybe ?strsplit Reading one of the good intro to R documents out there would also help you get started with this fairly straightforward task Beyond that, you did a good job of explaining your problem, but this is o

[R] how to process this in R

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. ho