[R] performing script on multiple files

Jonas Josefsson jonas at runtimerecords.net
Fri Sep 24 21:48:09 CEST 2010


say that I have a script that uses read.csv to read a textfile in a 
certain directory, then transforming the data a bit and then spit out a 
new file in an output directory.
Is it possible to make this universal so the same procedure is made for 
all files in a certain directory and also make it spit out files that 
changes names for each file that is made (so the same output.csv is not 
overwritten every time the script runs)?



More information about the R-help mailing list