[R] Iterate over a list of input files?
dunner
ross.dunne at tcd.ie
Wed Feb 9 01:50:10 CET 2011
Quick and dirty answer:
Try ?paste in conjunction with a "for" loop which iterates over
i:length(Files), and you can paste "i" onto the end of your filename, then
add the data to cd=list(), cd[i], then "unlist" the data or
as.data.frame(cd).
I'm sure there are more elegant alternatives.
Ross
--
View this message in context: http://r.789695.n4.nabble.com/Iterate-over-a-list-of-input-files-tp3285285p3288088.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list