Data Center Apprenticeship: Character strings and regular expression


Spring 2024

To learn about how to handle character strings using regular expressions, we follow the case siudy in Chapter 17.1-17.7 of “Introduction to Data Science” by Rafael A. Irizarry.

The tutorial works with a dataset of self-reported heights, and covers both the most important functions for handling strings in R (with the stringr package) and the basics of describing patterns in strings with regular expressions.

Please use this link to follow the tutorial.

In addition, this cheatsheet provides a brief summary of the key functions and regex patterns.