When discussing performance with colleagues, teaching, sending a bug report or searching for guidance on mailing lists and here on Stack Overflow, 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 r in a text format? 如何以文本格式粘貼r中的數據結構? What other information should you include? 您還應該包括哪些其餘信息? post
Are there other tricks in addition to using dput()
, dump()
or structure()
? 除了使用dput()
, dump()
或structure()
以外,還有其餘技巧嗎? When should you include library()
or require()
statements? 何時應該包含library()
或require()
語句? Which reserved words should one avoid, in addition to c
, df
, data
, etc.? 除了c
, df
, data
等以外,還應避免使用哪些保留字? 性能
How does one make a great r reproducible example? 怎樣才能成爲一位偉大的[R重複的例子? ui