9.3 Summary

ds4psy: (09) Text data

Summary of topics, key commands, and packages.

After working through this chapter, you are able to:

  1. understand that text consists of strings,
  2. combine and dissect strings of text,
  3. use regular expressions,
  4. use stringr commands to find and replace text strings.

For an overview of text and string manipulation with stringr and regular expressions, take a look at the R Studio Cheat Sheet to check which commands you are now familiar with and which others you can still discover in the future:

Text and string manipulation with **stringr** and regular expressions<br>from [R&nbsp;Studio Cheat Sheets](https://www.rstudio.com/resources/cheatsheets/).

Figure 9.2: Text and string manipulation with stringr and regular expressions
from R Studio Cheat Sheets.

For more information on manipulating strings of text, see the contributed cheatsheets on Basic Regular Expressions in R.

Let’s test our knowledge and skills on manipulating text and strings by completing the following exercises.