Tidyverse Refresher
This lesson is called Tidyverse Refresher, part of the Data Cleaning with R course. This lesson is called Tidyverse Refresher, part of the Data Cleaning with R course.
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.
Your Turn
Create a new R script file. Within it, do the following:
Load the mammal sleep data bundled with
ggplot2
Select “name” and “conservation” columns and those that include the string ‘sleep’ in their name
Create a new column that contains the values of ‘sleep_total’ multiplied by 3
Filter the data to remove domesticated mammals
Use pipes to chain the operations!
Learn More
If you're interested in learning more about the Tidyverse approach, see this article on R for the Rest of Us website. This lesson from Adam Sullivan provides an overview of data chaining. And the University of Toronto Coders Club has a nice overview of how the pipe works.
Have any questions? Put them below and we will help you out!
Course Content
32 Lessons
You need to be signed-in to comment on this post. Login.