save files into a specific subfolder in a loop in R
问题 I feel I am very close to the solution but at the moment i cant figure out how to get there. I´ve got the following problem. In my folder "Test" I´ve got stacked datafiles with the names M1_1; M1_2 , M1_3 and so on: /Test/M1_1.dat for example. No I want to seperate the files, so that I get: M1_1[1].dat, M1_1[2].dat, M1_1[3].dat and so on. These files I´d like to save in specific subfolders: Test/M1/M1_1[1]; Test/M1/M1_1[2] and so on, and Test/M2/M1_2[1], Test/M2/M1_2[2] and so on. Now I