Skip to content
R for the Rest of Us Logo

Data Cleaning with R

Regular Expressions and Data Cleaning, Part 1

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.