Simulating experimental data in R

Knowing how to simulate experimental data is an incredibly useful skill. Practically, it allows you to generate data that you can use to test your analysis scripts, making it easier to preregister those scripts along with your study plan. Theoretically, it provides you with an excellent opportunity to test your intuition about how data behaves in different experimental designs.

Embedding multimedia files in R Markdown HTML documents

Update: I have improved the functions in this post and turned them into an R package. The source code and installation instructions are available here. I am currently writing a comprehensive educational resource of all things music called The Musican’s Compendium using bookdown, an R package that can generate print-ready books and ebooks from R Markdown documents.