I have several questions on your goals. Why are you planning to post-processing outside of R?
Why use CSV files when there are usually better ways to maintain the structure of the data? Why do you want to flatten your tables? It looks like a three-dimensional array would better capture the information. Since spreadsheets seem to be part of your style, please look at RExcel rcom.univie.ac.at, which allows for smooth integration of R and Excel. Rich ______________________________________________ R-help@r-project.org 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.