An Introduction to Surveys
Data Camp
Please go through and complete the following module
Link | Due by | Required | Task | Module | Chapters |
---|---|---|---|---|---|
Week 2 | 8/30/22 | Introduction to the Tidyverse | Data wrangling | ||
Data visualization | |||||
Grouping and summarizing | |||||
Types of visualizations | |||||
R Task
Please follow the directions listed below
- Download the task files
Unzip them on your computer
Open the file
Introduction to the Tidyverse walkthrough.Rmd
in RStudio.Run
install.packages('learnr')
in the Console and wait until the package installsClick 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 gifAfter finishing the walkthrough, open the mostly empty script to
Introduction to the Tidyverse script.R
and load up thetidyverse
library. Please be aware that it is included for you in this first task but will not be in the futureKeeping the hashtag, erase the words at the top and replace them with your full name
Load the
diamonds
1 data set in the same way asstarwars
was shown in the walkthrough. Then recode the following values in thecut
column in a new column namedcut_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.
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
Submit the script to eCampus in the Submission Portal
Comes from the
ggplot2
package which is also intidyverse
↩︎