[R] read

Ashta sewashm at gmail.com
Mon Nov 28 23:23:23 CET 2016

Hi all,

I have a script that  reads a file (dat.csv)  from several folders.
However, in some folders the file name is (dat) with out csv  and in
other folders it is dat.csv.  The format of data is the same(only the
file name differs  with and without "csv".

Is it possible to read these files  depending on their name in one?
like read.csv("dat.csv"). How can I read both type of file names?

Thank you in advance

More information about the R-help mailing list