16 of 22
Add decent struction to the list of 7 questions. What's with the 2 quasi-paragraphs of 3 questions followed by the 1 sentence question?
  • 20.8k
  • 11
  • 68
  • 118

How to make a great R reproducible example?

When discussing performance with colleagues, teaching, sending a bug report or searching for guidance on mailing lists and here on SO, a reproducible example is often asked and always helpful.

What are your tips for creating an excellent example?

How do you paste data structures from in a text format?

What other information should you include?

Are there other tricks in addition to using dput(), dump() or structure()?

When should you include library() or require() statements?

Which reserved words should one avoid, in addition to c, df, data, etc?

How does one make a great reproducible example?

  • 169.4k
  • 41
  • 433
  • 485