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 ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.