Skip to content
R for the Rest of Us Logo

Data Cleaning with R

Tidyverse Refresher

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!

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

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