How to export proper TSV?

后端 未结 2 1533
时光说笑
时光说笑 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:31

    you could also consider excluding the row names row.names = FALSE

    0 讨论(0)
  • 2021-02-18 22:45

    You can use col.names = NA:

    write.table(test, file='test.tsv', quote=FALSE, sep='\t', col.names = NA)
    
    0 讨论(0)
提交回复
热议问题