String Manipulation with stringr in R

0
Level

Advanced

Language

Access

Paid

Certificate

Paid

Learn how to pull character strings apart, put them back together and use the stringr package.

Add your review

Course Description

Character strings can turn up in all stages of a data science project. You might have to clean messy string input before analysis, extract data that is embedded in text or automatically turn numeric results into a sentence to include in a report. Perhaps the strings themselves are the data of interest, and you need to detect and match patterns within them. This course will help you master these tasks by teaching you how to pull strings apart, put them back together and use stringr to detect, extract, match and split strings using regular expressions, a powerful way to express patterns.

What You’ll Learn

String basics

You’ll start with some basics: how to enter strings in R, how to control how numbers are transformed to strings, and finally how to combine strings together to produce output that combines text and nicely formatted numbers.

Pattern matching with regular expressions

In this chapter you’ll learn about regular expressions, a language for describing patterns in strings. By combining regular expressions with the stringr functions you’ll greatly increase your power to manipulate strings.

Case studies

Practice your string manipulation skills on a couple of case studies. You’ll also learn a few new skills, reading strings into R and handling problems of case (e.g. A versus a).

Introduction to stringr

Time to meet stringr! You’ll start by learning about some stringr functions that are very similar to some base R functions, then how to detect specific patterns in strings, how to split strings apart and how to find and replace parts of strings.

More advanced matching and manipulation

Now for two advanced ways to use regular expressions along with stringr: selecting parts of a match (a.k.a capturing) and referring back to parts of a match (a.k.a back-referencing). You’ll also learn to deal with and strings or patterns that contain Unicode characters (e.g. é).

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “String Manipulation with stringr in R”

×

    Your Email (required)

    Report this page
    String Manipulation with stringr in R
    String Manipulation with stringr in R
    LiveTalent.org
    Logo
    LiveTalent.org
    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.