The stringr package provides an easy to use toolkit for working with strings, i.e. character data, in R. This cheatsheet guides you through stringr’s functions for manipulating strings. The back page provides a concise reference to regular expressions, a mini-language for describing, finding, and matching patterns in strings. Updated August 2021.
This two-page cheatsheet is divided into (1) detecting matches, (2) mutating, subsetting, joining, splitting, & ordering strings, and (3) managing lengths. It also covers regular expressions.
Clicking the Start Learning button will download the PDF.Read more.
The techniques and tools covered in String manipulation with stringr cheatsheet are most similar to the requirements found in Data Scientist job advertisements.