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 get an

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 ?file.exists On Tue, 28 Jan

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

RE: [R] reading non-existent files

2003-01-28 Thread Christian . Stratowa
: [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 directory plus file names and use read.delim(). My problem is that some