我编写了一个模拟基因表达的函数(即具有随机值的矩阵)。第一行和第一列保留基因和实验名称。
该函数生成的数据在 Excel 和 R 中看起来不错,当我使用read.table("file.csv", row.names=1, header = T)
. 但是在网络工具中,列名和行名被引用。
问:我怎样才能摆脱那些引号?
# save sample data as csv file
if (write2csv) {
write.table(sample.data, file = file.path, sep = "\t", col.names = NA)
} else {
return(sample.data)
}
}