Re: [R] skip reading a file.

2011-05-24 Thread Kenn Konstabel
You might use dir() to get the file names (if they are in the same folder), or something like dir(pattern="^file.*") if you want to read only some files from there. Then for storing the result as something like store[i,j] as in your example, you could split the file name using something like strspl

Re: [R] skip reading a file.

2011-05-24 Thread Duncan Murdoch
On 11-05-24 6:00 AM, Alaios wrote: Dear all, I would like to do read a bunch of files that have the following format file_i_j examples: file_1_1 file_1_2 file_1_3 file_2_1 file_2_2 file_3_1 file_3_2 file_3_3 file_3_4 file_4_1 file_4_2 The integer i goes from 1 to 100 and the integer j starts fr

[R] skip reading a file.

2011-05-24 Thread Alaios
Dear all, I would like to do read a bunch of files that have the following format file_i_j examples: file_1_1 file_1_2 file_1_3 file_2_1 file_2_2 file_3_1 file_3_2 file_3_3 file_3_4 file_4_1 file_4_2 The integer i goes from 1 to 100 and the integer j starts from 1 and stops somewhere between 1 an