Background

What is a Code-Through?

A code-through is a short tutorial where you explain how to do something in R. They are similar to explainer videos that you often see shared.

In the R world, these often take the format of package “vignettes”:

Code-throughs can come in many styles, sizes, and themes. Here are some examples to get you thinking:




Predicting Child Maltreatment Example

There are approximately 40,000 children in Richmond, VA, and between July 2013 and July 2017 there were 6,500 accepted cases of child maltreatment.Not all neighborhoods are affected by maltreatment in the same manner, as neighborhoods in the southwest and northeast of Richmond experience much higher counts of Child Protective Service (CPS) events. Can we do a better job ensuring that our limited child welfare resources are properly deployed to the communities where they are needed most?

To understand which communities have the greatest need, we must first determine where child maltreatment is likely to occur. There are a host of individual, family, and household level factors associated with child maltreatment, and research shows that community and social factors play an important role in understanding where maltreatment may occur.

~ BLOG ~

~ VIGNETTE ~








Why Do a Code-Through?

It is very useful to learn how to explain the steps needed to successfully complete a task or replicate results. Within organizations they are very useful for training new hires, collaborating on projects, and creating internal knowledge banks.

Quickly skimming some examples above, what are the best elements to include in a tutorial to make it clear and accessible?


Instructions

What Should We Explain?

For this assignment your code-through should be short and simple. It can be as short as two printed pages, or as long as you like.

You can focus your code-through on:

  • A demonstration of a topic from class or a programming trick you have learned this semester.
  • A tour of a dataset that you have found, and how it might be used.
  • An introduction to a new package or function.


What Should I Include?

Create your code-through tutorial in an RMD document.

Include anything that you need to get your ideas across. You might consider:

  • Images
  • Diagramming functions, tables or graphs
  • Print glimpses of datasets before and after manipulations so the user can see what has changed
  • Toy datasets that can be useful for demonstrating points

RMD Format

This assignment provides an opportunity to explore some options to customize your R Markdown document. You can see some of the templates available here:

And some advice on ways to customize appearance:

You can also create a slideshow presentation if you like:


What to Submit?

Submit your RMD and knitted HTML file on Canvas.

Also post your tutorial on the course discussion board and explain your concept to your classmates.