Note to look at site

This commit is contained in:
hadley 2015-11-11 16:44:57 -06:00
parent eaf25f50c6
commit 6c84e9d384
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ fruit <- rcorpora::corpora("foods/fruits")$fruits
sentences <- readr::read_lines("harvard-sentences.txt")
```
<!-- look at http://d-rug.github.io/blog/2015/regex.fick/ -->
# 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.