我将两个表合并在一起,我想将它们写到.txt
文件中。我设法做到了,但是当我在excel中打开.txt
文件时,符号¬†
已添加到某些值中。如何阻止这种情况的发生?我使用了以下代码:
ICU_PPS <- merge(ICU, PPS, by=c("Study","Lane","Isolate_ID","Sample_Number","MALDI_ID", "WGS","Source"),all=TRUE)
write.table(ICU_PPS,"ICUPPS2.txt", sep="\t", row.names = FALSE)
我得到的列中一些值的示例:
100_1#175
100_1#176
100_1#177
100_1#179
100_1#18 
100_1#19 
100_1#20 
我想要实现的目标:
100_1#175
100_1#176
100_1#177
100_1#179
100_1#18
100_1#19
100_1#20