Skip to content
R for the Rest of Us Logo

This lesson is locked

Get access to all lessons in this course.

If the video is not playing correctly, you can watch it in a new window

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

For this section of the course, you’ll need the materials in this GitHub repo. You can download or clone them. After you download or clone the materials from the GitHub repo for this section of the course, open the entire project by clicking 06_avalanchr.Rproj.

Your Turn

  • Let’s create a data dictionary for avalanche and add the results to a vignette. First, run use_data_raw(). Call the data “data_dictionary.” In the data processing file, put this code before the use_data() line. Then, source the script. This will run use_data() for you.

  • Open R/tables.R. Add a function called gt_data_dictionary() that wraps data_dictionary in gt::gt(). You can use gt_donations() as a starting point for the new function.

  • Re-document and re-build the package.

  • Open vignettes/data-dictionary.Rmd. On line 24, run gt_data_dictionary() and knit the vignette.

Learn More

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.