search for: subrichcdt

Displaying 1 result from an estimated 1 matches for "subrichcdt".

2011 Jul 31
5
Appending 4 Digits On A File Name
Greetings all, I would like to append a 4 digit number suffix to the names of my files for later use. What I am using now only produces 1 or 2 or 3 or 4 digits. ############ for (i in 1:1000) { temp <- (kegg [i,]) temp <- merge (temp, subrichcdt, by="gene") file.name <- paste ("kegg.subrichcdt.", i, ".txt", sep="") write.table(temp, file=file.name) } ####### But I want: "kegg.subrichcdt.0001.txt" "kegg.subrichcdt.0002.txt", ... Any suggestions M -- Matt Curcio...