Wrapping up
1. Wrapping up
You've moved from just entering strings in R, to putting strings together, detecting, extracting and splitting strings, describing patterns with regular expressions, and putting them together to capture, alter, and count interesting patterns in strings.2. Next steps
You've learnt a lot of string manipulation functions from the stringr package, but now you might want to take a look at all the functions in stringr. We've covered those we think are most useful, but you might find some others that are particularly useful to you. Now you are now familiar with stringr syntax, you should find using any of the functions we didn't cover straightforward. Remember stringr is built on top of the stringi package, and stringi contains a much larger set of functions. If you do find something that stringr doesn't seem to help with, take a look at stringi first. You'll find using stringi feels very familiar, it borrows a lot of its API from stringr, for example, it uses a common prefix for all it's functions, and consistently expects a vector of strings as the first argument. I hope we've convinced you of the power of regular expressions. However, they can be notoriously difficult to get working sometimes. We hope you'll learn more about them. A great place to start is [FILL IN THE BLANK] or, if you are ready to dive deep, Mastering Regular Expressions by Jeffrey Friedl is a canonical text. If you are interested in seeing more regular expressions without using the rebus package, check out the section in R for Data Science: http://r4ds-dot-had-dot-co-dot-nz/strings-dot-html#matching-patterns-with-regular-expressions. If you've enjoyed working with strings,3. Next steps
you might think about taking the "Text Mining: Bag of Words" course, which moves from just manipulating strings to analyzing them for insight. That's all I have for you.4. Let's practice!
I've really enjoyed this course and I hope you have too. Stay tuned, for your final video. I'll be interviewing my brother Hadley Wickham an author of many R packages but in particular the creator of the stringr package.Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.