R for Strings

Handling Strings With R

1st Edition: October 2016
2nd Edition: February 2021
3rd Edition: January 2024


This book aims to provide a panoramic perspective of the wide array of string manipulations that you can perform with R. If you are new to R, or lack experience working with character data, this book will help you get started with the basics of handling strings. Likewise, if you are already familiar with R, you will find material that shows you how to do more advanced string and text processing operations.

About You

I am assuming that you have both R or RStudio installed in your computer. If this is not the case, you can take a look at Breaking the Ice with R



You can cite this work as:

Sanchez, G. (2024) Handling Strings with R.

My Series of R Tutorials

This manuscript is part of a series of texts that I’ve written about Programming and Data Analysis in R:


As a Data Science and Statistics educator, I love to share the work I do. Each month I spend dozens of hours curating learning materials like this resource. If you find any value and usefulness in it, please consider making a one-time donation—via paypal—in any amount (e.g. the amount you would spend inviting me a cup of coffee or any other drink). Your support really matters.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.