?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 error
> and my program stops.
> Is there a way to check for a null pointer analogous to C, so that
> I can simply skip non-existent filenames?
> 
> Please do "Reply to all" since in the company I am not subscribed
> to the R-help list.
> 
> Thank you in advance
> Best regards
> Christian Stratowa
> 
> ==============================================
> Christian Stratowa, PhD
> Boehringer Ingelheim Austria
> Dept NCE Lead Discovery - Bioinformatics
> Dr. Boehringergasse 5-11
> A-1121 Vienna, Austria
> Tel.: ++43-1-80105-2470
> Fax: ++43-1-80105-2683
> email: [EMAIL PROTECTED]
> 
> ______________________________________________
> [EMAIL PROTECTED] mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 

-- 
318 Carr Hall                                [EMAIL PROTECTED]
Zoology Department, University of Florida    http://www.zoo.ufl.edu/bolker
Box 118525                                   (ph)  352-392-5697
Gainesville, FL 32611-8525                   (fax) 352-392-3704

______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to