I am trying to save the matrix that I have in R as a text file with a tab delimiter with the names of the rows and columns that are included and correctly aligned.
I tried this:
write.table(data, "mytable.txt", sep="\t", col.names=TRUE)
But when I open the file, it is a messy mess. I assume this has something to do with row or column names that are not specified, but I'm not sure.
source
share