R : Format the text file output

前端 未结 1 1060
予麋鹿
予麋鹿 2020-12-12 07:08

Can anyone help me on how to format the text file like the format in the image below? I am using R 2.12.2 so the functions of higher version can\'t be use.

I have tr

相关标签:
1条回答
  • 2020-12-12 07:42

    I would suggest trying sink, as in:

    sink('sample.txt') # open sink
    # run all of your code
    sink() # close sink
    

    And you should get what you want.

    0 讨论(0)
提交回复
热议问题