When you are performing your analyses, how do you keep your results organized?

Do you keep a parallel word document and copy/paste the result as you build your 'story'?

Was curious to see how other researchers and statisticians organize their workflows.

  • $\begingroup$ github.com $\endgroup$ – Sycorax Aug 2 '16 at 19:00
  • 1
    $\begingroup$ yeah, I am too. $\endgroup$ – Sycorax Aug 2 '16 at 19:18
  • 1
    $\begingroup$ Isn't Github structured for software development? $\endgroup$ – MattCrow Aug 2 '16 at 19:25
  • 2
    $\begingroup$ GitHub is structured for sharing and modifying documents of all sorts. $\endgroup$ – whuber Aug 2 '16 at 19:25
  • 3
    $\begingroup$ Given that this is CW, I think we could consider this worth keeping open. I suspect this is a worthwhile topic that will be of value to many people. $\endgroup$ – gung Aug 2 '16 at 20:54

A really nice way to keep your results organized is to use rmarkdown. It interweaves human language and presentation with the r programming language. So at the end you have a presentable document that runs and presents the results of r code along the way.

It a combination of markdown and r code so that you both have runnable code and a structure to present the results of your code. Markdown is simple syntax that allows you to build simple webpages (or other kinds of documents) from text. Markdown is to html like latex is to pdf. So rmarkdown just adds the functionality of displaying the results of r code as well in the flow of the document.

I usually don't write the final paper in rmarkdown but it is nice starting place for how I want to present the experimental section or if I want to highlight certain results on my webpage.

Here are some resources:

  1. rmarkdown cheat sheet
  2. official website
  3. long rmarkdown example
  • $\begingroup$ Markdown looks interesting. Playing devil's advocate, wouldn't it be easier to just copy/paste right into a word processor, though? You have to code the syntax to get the formatting you want which adds some time I would think. $\endgroup$ – MattCrow Aug 2 '16 at 19:32
  • 1
    $\begingroup$ @MattCrow It is true that markdown doesn't have as much control over format as Word (at least if you don't learn any advanced tools). However, rmarkdown provides a simple way to present both human thoughts and machine output in a way that is easy to change both. How many times have you had to change all your graphs just a little? Or maybe the output of your code? Then in that case copying and pasting is a big time waster and frustrating. $\endgroup$ – MathIsKey Aug 2 '16 at 19:41
  • 3
    $\begingroup$ Markdown is great. I use Jupyter Notebook a lot and cells can be markdown or code cells. $\endgroup$ – roundsquare Aug 2 '16 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.