Skip to content
R for the Rest of Us Logo

Regular Expressions and Data Cleaning, Part 1

This lesson is locked

Get access to all lessons in this 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

After running the code below, how can we exclude muskrats from the matches?

msleep %>% 
  select(name,genus) %>% 
  filter(str_detect(string = name,pattern = "rat"))

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

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