[R] different names for new files in a for loop

Yash Gandhi yashman84 at yahoo.com
Tue Jul 28 21:43:20 CEST 2009


Hi,

I have an excel file with 10 columns and I am trying to create new excel files each with columns 1, 2, and columns 3-10.
Does anyone know how to change the name of the file in a for loop so that the first new file will have columns 1, 2, 3 with a name and then the next file will have columns 1, 2, 4 with a different name and so on till i get to the 8th new file with columns 1, 2, 10?

Thank you

Yash Gandhi




More information about the R-help mailing list