An Introduction to Surveys

Data Camp

Please go through and complete the following module

LinkDue byRequiredTaskModuleChapters
Week 28/30/22Introduction to the TidyverseData wrangling
Data visualization
Grouping and summarizing
Types of visualizations

R Task

Please follow the directions listed below

  1. Download the task files

  1. Unzip them on your computer

  2. Open the file Introduction to the Tidyverse walkthrough.Rmd in RStudio.

  3. Run install.packages('learnr') in the Console and wait until the package installs

  4. Click on Run Document, and then go through the walkthrough preferably in a larger window. To see how to do this, open the file Introduction to the Tidyverse loading.gif in the web browser of your choice or by another method to view the animated gif

  5. After finishing the walkthrough, open the mostly empty script to Introduction to the Tidyverse script.R and load up the tidyverse library. Please be aware that it is included for you in this first task but will not be in the future

  6. Keeping the hashtag, erase the words at the top and replace them with your full name

  7. Load the diamonds1 data set in the same way as starwars was shown in the walkthrough. Then recode the following values in the cut column in a new column named cut_recoded

    • Ideal with 5
    • Premium with 4
    • Very Good with 3
    • Good with 2
    • Fair with 1

    and everything else with 0. Your output should consist of two columns - the unique original values and their respective recoding.

  8. Save the file by adding your first initial and last name to the beginning of the filename. For example, my submission would be aroy Introduction to the Tidyverse script.R

  9. Submit the script to eCampus in the Submission Portal


  1. Comes from the ggplot2 package which is also in tidyverse ↩︎