[R] reading non-existent files

2003-01-28 Thread Christian . Stratowa
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 error and my program stops. Is there a way to check for a null pointer

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
To: [EMAIL PROTECTED] Subject: [R] reading non-existent files 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 error

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