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
I would suggest trying sink, as in:
sink
sink('sample.txt') # open sink # run all of your code sink() # close sink
And you should get what you want.