Wednesday, February 20, 2013

Write matrix in R as a text file

In R to write matrix as a text file in the working folderuse write.table. Separator = tab, and with no quotes:

write.table(matrix, file="file.txt", sep = "\t", quote =F)

No comments:

Post a Comment