Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • This should have cat(out_string) in order to render properly. Besides that it nearly works as requested, but the output of mydf has columns aligned with spaces, rather than csv. Still nice if one wants that formatting. Commented Oct 11, 2017 at 4:56
  • Sorry, I didn't pay attention to the details of the format of your answer. I thought you were asking how to simply write a file that combined the two outputs. Commented Oct 11, 2017 at 12:02
  • No worries. I wasn't aware of sink and I can see it being quite useful, so I am grateful for your answer. Commented Oct 11, 2017 at 23:03