Skip to content
Prev 43245 / 398506 Next

write.table file="file.txt" help

Kristin Kay Nicodemus wrote:

            
Use paste().

for(i in 1:n) {
   file <- paste("C:/WINDOWS/Desktop/SNPs/haplo", i, "txt", sep = ".")
   cat("Writing data to", file, "\n")
   write.table(ch1d, file=file,
             row.names=F, col.names=F, append=F, quote=F)
}

-sundar