RE: [R] reading non-existent files

2003-01-28 Thread Christian . Stratowa
FEX BIG-AT-V > Cc: [EMAIL PROTECTED] > Subject: Re: [R] reading non-existent files > > On Tue, 28 Jan 2003 [EMAIL PROTECTED] wrote: > > > I would like to read all files from a directory, the files have names > > "myname0001.txt" etc. I paste the director

RE: [R] reading non-existent files

2003-01-28 Thread Marc Schwartz
>-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] On Behalf Of >[EMAIL PROTECTED] >Sent: Tuesday, January 28, 2003 8:59 AM >To: [EMAIL PROTECTED] >Subject: [R] reading non-existent files > > >Dear R-experts > >I would like to read all files from a directory, the fil

Re: [R] reading non-existent files

2003-01-28 Thread ripley
On Tue, 28 Jan 2003 [EMAIL PROTECTED] wrote: > I would like to read all files from a directory, the files have names > "myname0001.txt" etc. I paste the directory plus file names and > use "read.delim()". > My problem is that some file names are missing, so I get an error > and my program stops.

RE: [R] reading non-existent files

2003-01-28 Thread Jesus Frias
Hi Christian, I suppose that you are doing this in a loop and is stopping. Have a look at the function try() ?try Try an Expression Allowing Error Recovery. Description: `try' is a wrapper to run an expression that might fail and allow the user's code to handle error

RE: [R] reading non-existent files

2003-01-28 Thread Christian . Stratowa
-2683 email: [EMAIL PROTECTED] > -Original Message- > From: Ben Bolker [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, January 28, 2003 4:15 PM > To: Stratowa,Dr,Christian FEX BIG-AT-V > Cc: [EMAIL PROTECTED] > Subject: Re: [R] reading non-existent files > > >

Re: [R] reading non-existent files

2003-01-28 Thread Ben Bolker
?file.exists On Tue, 28 Jan 2003 [EMAIL PROTECTED] wrote: > Dear R-experts > > I would like to read all files from a directory, the files have names > "myname0001.txt" etc. I paste the directory plus file names and > use "read.delim()". > My problem is that some file names are missing, so I g