How to export proper TSV?

后端 未结 2 1532
时光说笑
时光说笑 2021-02-18 22:10

Short and sweet: how can I export TSV/CSV from R?

write.table / write.csv almost works:

test <- data.frame(a = 2 :          


        
2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-18 22:45

    You can use col.names = NA:

    write.table(test, file='test.tsv', quote=FALSE, sep='\t', col.names = NA)
    

提交回复
热议问题