[R] Check whether a file exits ...

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Dec 30 23:23:03 CET 2002


"Ngayee J Law" <Ngayee.Law at celeradiagnostics.com> writes:

> Hello all,
> 
> I need to write a R program that checks whether a file exists in the
> directory. Any easy ways
> to do that? Thanks!

Look up file.exists() (and possibly file.path() too)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list