What is a reprex and why is it useful?


Figure 1


Figure 2


Figure 3


Identify the problem and make a plan


Figure 1


Figure 2


Figure 3


Figure 4


Figure 5


Figure 6


Minimal Reproducible Data


Figure 1

  • Screenshot of the ratdat comple_old dataset.

  • Minimal Reproducible CodeXXX updatemeMaking a reprex


    Figure 1

    Whoa, this is really overwhelming! Mickey forgot that the dataset includes data for a lot of different rodent species, not just kangaroo rats. Mickey is only interested in two kangaroo rat species: Dipodomys ordii (Ord’s kangaroo rat) and Dipodomys spectabilis (Banner-tailed kangaroo rat).


    Figure 2


    Figure 3


    Figure 4


    Asking your question


    Figure 1

    A function called "my_awesome_custom_function" is lurking in my R environment. I must have defined it a while ago and forgotten! Code that includes this function will not run for someone else unless the function definition is also included in the reprex.
    A function called "my_awesome_custom_function" is lurking in my R environment. I must have defined it a while ago and forgotten! Code that includes this function will not run for someone else unless the function definition is also included in the reprex.

    Figure 2


    Figure 3