sink a data frame to .txt file

后端 未结 2 1976
不思量自难忘°
不思量自难忘° 2021-01-24 21:47

I have a 4-column data frame named as mytable with hundreds of rows. It looks like

id         name                   count        rate
234     uert e@3 erwafrw         


        
2条回答
  •  难免孤独
    2021-01-24 22:23

    You seem confused about the difference between a file and the console output. There is no limitation to the width of lines with write.table, at least not ones you will approach in normal use. You can control the console screen width with options(width=72) and use capture.output(print(mytable)) so the ouput meets whatever unstated width requirements you might have.

提交回复
热议问题