[R] Read multiple text files and combine into single file?

From: pif pif <pifbugs_at_hotmail.fr>
Date: Tue 30 Jan 2007 - 12:53:45 GMT


Hi everyone!

I have 1000 text files that contain data in a standard format separated by semi colons. However, each file also has single header (first) and footer (final) lines. The text files are all named with a sample number, which do not follow a pattern. I need to delete the header and footer lines and combine all files into a single (or possibly several) large files. Does anyone know how this could be done automatically using R?

best regards,

Ton



R-help@stat.math.ethz.ch mailing list
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. Received on Wed Jan 31 19:35:51 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 31 Jan 2007 - 14:00:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.