From 6c84e9d384a095016a3a4a4a4c2fd384ff92d780 Mon Sep 17 00:00:00 2001 From: hadley Date: Wed, 11 Nov 2015 16:44:57 -0600 Subject: [PATCH] Note to look at site --- strings.Rmd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strings.Rmd b/strings.Rmd index 4f7ac82..e3bd375 100644 --- a/strings.Rmd +++ b/strings.Rmd @@ -13,6 +13,8 @@ fruit <- rcorpora::corpora("foods/fruits")$fruits sentences <- readr::read_lines("harvard-sentences.txt") ``` + + # String manipulation This chapter introduces you to string manipulation in R. You'll learn the basics of how strings work and how to create them by hand, but the focus of this chapter will be on regular expressions. Character variables typically unstructured or semi-structured data so you need some tools to make order from madness. Regular expressions are a very concise language for describing patterns in strings. When you first look at them, you'll think a cat walked across your keyboard, but as you learn more, you'll see how they allow you to express complex patterns very concisely. The goal of this chapter is not to teach you every detail of regular expressions. Instead we'll give you a solid foundation that allows you to solve a wide variety of problems and point you to resources where you can learn more.