Hi there
I am very new to R so dont know much about the programming side of thing yet. I've worked out how to input a data matrix, create distance matrices and print them to an external file but only for one data matrix at a time.

I actually have a batch of data matrices for which I want to create distance matrices for each in turn and then print these distance matrices to their respective external files. (I'm wanting them printed as CSV files for processing in excel).

How easy is it to get R to read in files one at a time from a directory and do the same thing with all of those files in turn? And could someone please give me some advice as to how I may go about achieving this if its possible? It would be much appreciated

	[[alternative HTML version deleted]]

