I've written a function that simulates gene expressions (i.e. a matrix with random values). First row and column stay for gene and experiments names.
The data generated by the function looks OK in Excel and in R, when i read it in with read.table("file.csv", row.names=1, header = T)
. But in a web-tool col and row names are quoted.
Q: How can i get rid of those quotes?
# save sample data as csv file
if (write2csv) {
write.table(sample.data, file = file.path, sep = "\t", col.names = NA)
} else {
return(sample.data)
}
}