Skip to content
R for the Rest of Us Logo

Data Cleaning with R

Regular Expressions and Data Cleaning, Part 2

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

  1. Download CRAN package descriptions using the tools package

  2. Select package name, author, description, and all variables that end in ‘ports’

  3. Filter rows for packages with names that:

  • end in plot

  • contain Bayes

  • contain digits

  • are all UPPER CASE

Learn More

To learn more about groups and back references, check out the website regular-expressions.info and Chapter 1 of the book Mastering Software Development in R.

Two (paid) books that are also useful are Regular Expressions Cookbook and Mastering Regular Expressions.

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

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